-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathremot1.py
More file actions
77 lines (66 loc) · 2.41 KB
/
remot1.py
File metadata and controls
77 lines (66 loc) · 2.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
from tkinter import messagebox
from tkinter import *
import Weathern2
import nnotepad
import ncalcultor
import pyautogui
from tkinter.filedialog import*
import time
root = Tk()
root.geometry("390x380")
root.title('Python assist')
root.config(bg="azure")
root.resizable(0,0)
def INF():
messagebox.showinfo('Info',
'🐍 Python Assist v1.0\n\n'
'A lightweight toolkit with:\n'
'• Notepad\n'
'• Calculator\n'
'• Weather Report\n'
'• Screenshot Tool\n\n'
'Built with ❤️ using Python.\n'
'© 2025 Python Assist')
def INF2():
messagebox.showinfo('Help',
'🆘 Python Assist - Help Guide\n\n'
'• 📝 Notepad: Open a simple text editor to write and save notes.\n'
'• 🧮 Calculator: Perform basic arithmetic calculations.\n'
'• 🌦️ Weather: Enter a city name to get live weather updates.\n'
'• 📸 Screenshot: Minimizes this app, captures the full screen, and lets you save it anywhere.\n\n'
'✅ Tip: Use the menu options for Info, Help, or to Exit the app.\n\n'
'Built with ❤️ using Python.\n'
'Enjoy using Python Assist!')
def qit():
root.destroy()
#menu-bar
mnu= Menu(root)
m1=Menu(mnu,tearoff=0)
m1.add_command(label='Info',command=INF)
m1.add_command(label='Help',command=INF2)
m1.add_command(label='Exit',command=qit)
mnu.add_cascade(label='Options',menu=m1)
root.config(menu=mnu)
#button commands
def hi():
Weathern2.main()
def note():
nnotepad.ran()
def p2p():
ncalcultor.col()
def tk_ss():
root.iconify()
time.sleep(0.3)
ss=pyautogui.screenshot()
sp=asksaveasfilename()
ss.save(sp+"_ss.png")
#buttons
b1=Button(root,text='Weather Report',font="Algerian 25",bg="#fff",command=hi)
b1.place(x=35,y=25)
b2=Button(root,text='Notepad',font="Algerian 25",bg="#fff",command=note)
b2.place(x=100,y=250)
b3=Button(root,text='Screen Shot',font="Algerian 25",bg="#fff",command=tk_ss)
b3.place(x=72.5,y=100)
b4=Button(root,text='Calculator',font="Algerian 25",bg="#fff",command=p2p)
b4.place(x=75,y=175)
root.mainloop()