messytool 1.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,20 @@
1
+ Metadata-Version: 2.4
2
+ Name: messytool
3
+ Version: 1.0.0
4
+ Summary: Some useful tools...
5
+ Author: Ruize,Dai
6
+ Author-email: a_cloudclear@163.com
7
+ Requires-Python: >=3.5
8
+ Description-Content-Type: text/markdown
9
+ Dynamic: author
10
+ Dynamic: author-email
11
+ Dynamic: description
12
+ Dynamic: description-content-type
13
+ Dynamic: requires-python
14
+ Dynamic: summary
15
+
16
+ message.py:A package sending message.
17
+ It only works on Windows.Dont't use macOS or
18
+ Lunix system except ERRORS.
19
+ vote.py:To vote,only need to import it.
20
+ vote.py:To calc,only need to import it too.
@@ -0,0 +1,5 @@
1
+ message.py:A package sending message.
2
+ It only works on Windows.Dont't use macOS or
3
+ Lunix system except ERRORS.
4
+ vote.py:To vote,only need to import it.
5
+ vote.py:To calc,only need to import it too.
File without changes
@@ -0,0 +1,42 @@
1
+ from tkinter import *
2
+ root=Tk()
3
+ needcalc=StringVar()
4
+ needcalc.set('')
5
+ def press_normal_keys(key):
6
+ needcalc.set(needcalc.get()+key)
7
+ def press_equal():
8
+ try:
9
+ needcalc.set(eval(needcalc.get()))
10
+ except Exception:
11
+ needcalc.set('CauculatorError')
12
+ if len(str(eval(needcalc.get())))>=20:
13
+ needcalc.set('LenOutOfDisplay')
14
+
15
+ def press_ce():
16
+ needcalc.set('')
17
+ def press_bs():
18
+ new_str=needcalc.get()[:-1]
19
+ needcalc.set(new_str)
20
+ e1=Entry(root,textvariable=needcalc).grid(row=0,column=0,columnspan=4)
21
+ b1=Button(root,text='1',command=lambda:press_normal_keys('1'),bg='orange',width=5).grid(row=1,column=0)
22
+ b2=Button(root,text='2',command=lambda:press_normal_keys('2'),bg='orange',width=5).grid(row=1,column=1)
23
+ b3=Button(root,text='3',command=lambda:press_normal_keys('3'),bg='orange',width=5).grid(row=1,column=2)
24
+ bp=Button(root,text='+',command=lambda:press_normal_keys('+'),bg='blue',width=5).grid(row=1,column=3)
25
+ b4=Button(root,text='4',command=lambda:press_normal_keys('4'),bg='orange',width=5).grid(row=2,column=0)
26
+ b5=Button(root,text='5',command=lambda:press_normal_keys('5'),bg='orange',width=5).grid(row=2,column=1)
27
+ b6=Button(root,text='6',command=lambda:press_normal_keys('6'),bg='orange',width=5).grid(row=2,column=2)
28
+ bm=Button(root,text='-',command=lambda:press_normal_keys('-'),bg='blue',width=5).grid(row=2,column=3)
29
+ b7=Button(root,text='7',command=lambda:press_normal_keys('7'),bg='orange',width=5).grid(row=3,column=0)
30
+ b8=Button(root,text='8',command=lambda:press_normal_keys('8'),bg='orange',width=5).grid(row=3,column=1)
31
+ b9=Button(root,text='9',command=lambda:press_normal_keys('9'),bg='orange',width=5).grid(row=3,column=2)
32
+ bmu=Button(root,text='×',command=lambda:press_normal_keys('*'),bg='blue',width=5).grid(row=3,column=3)
33
+ b0=Button(root,text='0',command=lambda:press_normal_keys('0'),bg='orange',width=10).grid(row=4,column=0,columnspan=2)
34
+ bd=Button(root,text='÷',command=lambda:press_normal_keys('/'),bg='blue',width=10).grid(row=4,column=2,columnspan=2)
35
+ bdot=Button(root,text='.',command=lambda:press_normal_keys('.'),bg='orange',width=5).grid(row=5,column=0)
36
+ bcf=Button(root,text='**',command=lambda:press_normal_keys('**'),bg='blue',width=5).grid(row=5,column=1)
37
+ bqy=Button(root,text='%',command=lambda:press_normal_keys('%'),bg='blue',width=5).grid(row=5,column=2)
38
+ bzc=Button(root,text='//',command=lambda:press_normal_keys('//'),bg='blue',width=5).grid(row=5,column=3)
39
+ be=Button(root,text='=',command=press_equal,bg='cyan',width=20).grid(row=6,column=0,columnspan=4)
40
+ bce=Button(root,text='CE',command=press_ce,bg='purple',width=10).grid(row=7,column=0,columnspan=2)
41
+ bb=Button(root,text='<<',command=press_bs,bg='purple',width=10).grid(row=7,column=2,columnspan=2)
42
+ root.mainloop()
@@ -0,0 +1,10 @@
1
+ from win10toast import ToastNotifier
2
+ def send(title,msg):
3
+ toaster=ToastNotifier()
4
+ toaster.showToast(title,msg)
5
+ def send_warning(msg):
6
+ toaster=ToastNotifier()
7
+ toaster.showToast('Warning',msg)
8
+ def send_error(msg):
9
+ toaster=ToastNotifier()
10
+ toaster.showToast('Error',msg)
@@ -0,0 +1,21 @@
1
+ from tkinter import *
2
+ root=Tk()
3
+ y=StringVar()
4
+ n=StringVar()
5
+ t=StringVar()
6
+ y.set(0)
7
+ n.set(0)
8
+ t.set(0)
9
+ def yes():
10
+ y.set(int(y.get())+1)
11
+ t.set(int(t.get())+1)
12
+ def no():
13
+ n.set(int(n.get())+1)
14
+ t.set(int(t.get())+1)
15
+ b1=Button(root,text='Yes',command=yes,width=20,bg='green').grid(row=0,column=0)
16
+ b2=Button(root,text='No',command=no,width=20,bg='red').grid(row=0,column=1)
17
+ l1=Label(root,textvariable=y).grid(row=1,column=0)
18
+ l2=Label(root,textvariable=n).grid(row=1,column=1)
19
+ l3=Label(root,text='Total:').grid(row=2,column=0)
20
+ l4=Label(root,textvariable=t).grid(row=2,column=1)
21
+
@@ -0,0 +1,20 @@
1
+ Metadata-Version: 2.4
2
+ Name: messytool
3
+ Version: 1.0.0
4
+ Summary: Some useful tools...
5
+ Author: Ruize,Dai
6
+ Author-email: a_cloudclear@163.com
7
+ Requires-Python: >=3.5
8
+ Description-Content-Type: text/markdown
9
+ Dynamic: author
10
+ Dynamic: author-email
11
+ Dynamic: description
12
+ Dynamic: description-content-type
13
+ Dynamic: requires-python
14
+ Dynamic: summary
15
+
16
+ message.py:A package sending message.
17
+ It only works on Windows.Dont't use macOS or
18
+ Lunix system except ERRORS.
19
+ vote.py:To vote,only need to import it.
20
+ vote.py:To calc,only need to import it too.
@@ -0,0 +1,11 @@
1
+ README.md
2
+ pyproject.toml
3
+ setup.py
4
+ messytool/__init__.py
5
+ messytool/calculator.py
6
+ messytool/message.py
7
+ messytool/vote.py
8
+ messytool.egg-info/PKG-INFO
9
+ messytool.egg-info/SOURCES.txt
10
+ messytool.egg-info/dependency_links.txt
11
+ messytool.egg-info/top_level.txt
@@ -0,0 +1 @@
1
+ messytool
@@ -0,0 +1,3 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61.0", "wheel"]
3
+ build-backend = "setuptools.build_meta"
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,14 @@
1
+ from setuptools import setup,find_packages
2
+ setup(
3
+ name='messytool',
4
+ version='1.0.0',
5
+ author='Ruize,Dai',
6
+ author_email='a_cloudclear@163.com',
7
+ description='Some useful tools...',
8
+ long_description=open('README.md').read(),
9
+ long_description_content_type='text/markdown',
10
+ packages=find_packages(),
11
+ python_requires='>=3.5',
12
+ install_requires=[],
13
+ )
14
+