forked from divyanshdeshmukh/Smart-City
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtest.py
56 lines (40 loc) · 1.69 KB
/
test.py
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
from tkinter import *
from PIL import Image, ImageTk
root = Tk()
root.title("Smart city")
root.geometry("2289x1754")
root.configure(background="light blue")
def hospital():
import os
os.system("python hospital.py")
def light():
import os
os.system("python street.py")
def dustbin():
import os
os.system("python sm_dust.py")
def parking():
import os
os.system("python smartpark.py")
def farmer():
import os
os.system("python crops.py")
os.system("python dht11_py.py")
def toll():
import os
os.system("python Toll_tax.py")
def home():
import os
os.system("python homeautomation.py")
##image = Image.open('city3.png')
##photo_image = ImageTk.PhotoImage(image)
##label = Label(root, image = photo_image).pack()
lbl=Label(root,font=("arial",40,"bold"),text="Welcome to city control pannel",fg="red",bg="light blue",justify="center").pack()
btn1=Button(root,text="hospital",padx=10,pady=10,font=("arial",20,"bold"),command=hospital).place(x=310,y=100)
btn2=Button(root,text="StreetLight",padx=10,pady=10,font=("arial",20,"bold"),command=light).place(x=310,y=200)
btn3=Button(root,text="Smart Dustbin",padx=10,pady=10,font=("arial",20,"bold"),command=dustbin).place(x=310,y=300)
btn4=Button(root,text="Smart parking",padx=10,pady=10,font=("arial",20,"bold"),command=parking).place(x=600,y=100)
btn5=Button(root,text="Smart irrigation",padx=10,pady=10,font=("arial",20,"bold"),command=farmer).place(x=600,y=200)
btn6=Button(root,text="Toll Tax",padx=10,pady=10,font=("arial",20,"bold"),command=toll).place(x=600,y=300)
btn7=Button(root,text="Home Automation",padx=10,pady=10,font=("arial",20,"bold"),command=home).place(x=400,y=400)
root.mainloop()