-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCHOOSE.py
More file actions
66 lines (53 loc) · 2.76 KB
/
CHOOSE.py
File metadata and controls
66 lines (53 loc) · 2.76 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
def assembly():
res = messagebox.askyesnocancel("Notifications", "If you want to open Assembly Management Part ?")
if (res == True):
os.system("python PROJECT1.py")
else:
return
def timetable():
res = messagebox.askyesnocancel("Notifications", "If you want to open Time Table (Schedule) Management Part ?")
if (res == True):
os.system("python PROJECT2.py")
else:
return
def event():
res = messagebox.askyesnocancel("Notifications", "If you want to open Special Event Management Part ?")
if (res == True):
os.system("python PROJECT3.py")
else:
return
def attendance():
res = messagebox.askyesnocancel("Notifications", "If you want to open Attendance Management Part ?")
if (res == True):
os.system("python PROJECT4.py")
else:
return
import os
from tkinter import *
from tkinter import messagebox
from PIL import ImageTk
root = Tk()
root.title("Choose the work to do")
root.geometry("1350x700+0+0")
# ...................................................................................................................ALL IMAGES
bg_icon = ImageTk.PhotoImage(file="C:/Users/yashdeep1/Pictures/colorful-background-1.jpg")
# ...................................................................................................................VARIABLES
bg_lbl = Label(root, image=bg_icon)
bg_lbl.pack(fill=BOTH)
chooseframe = Frame(root, bg="yellow", relief=GROOVE, bd=7)
chooseframe.place(x=275, y=275, width=770, height=200)
title = Label(root, text="CHOOSE THE PART OF SYSTEM", font=("times new roman", 40, "bold"), bg="blue",fg="white", relief=GROOVE, borderwidth=4)
title.place(x=0, y=0, relwidth=1)
assemblybutton = Button(chooseframe, bd=5, text="ASSEMBLY", font=("times new roman", 20, "bold"), width=20,
bg="firebrick1", fg="black", activeforeground="white", activebackground="blue",command=assembly)
assemblybutton.place(x=20, y=20)
ttbutton = Button(chooseframe, bd=5, text="TIME TABLE", font=("times new roman", 20, "bold"), width=20,
bg="firebrick1", fg="black", activeforeground="white", activebackground="blue",command=timetable)
ttbutton.place(x=400, y=20)
eventbutton = Button(chooseframe, bd=5, text="SPECIAL EVENTS", font=("times new roman", 20, "bold"), width=20,
bg="firebrick1", fg="black", activeforeground="white", activebackground="blue",command=event)
eventbutton.place(x=20, y=100)
attendancebutton = Button(chooseframe, bd=5, text="ATTENDANCE", font=("times new roman", 20, "bold"), width=20,
bg="firebrick1", fg="black", activeforeground="white", activebackground="blue",command=attendance)
attendancebutton.place(x=400, y=100)
root.mainloop()