-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapp1.py
76 lines (57 loc) · 3.18 KB
/
app1.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
from tkinter import *
from tkinter import messagebox
class Window(Frame):
def __init__(self, master):
Frame.__init__(self, master)
self.master = master
self.init_window()
def init_window(self):
self.master.title("BaseMasteRX 3000")
menubar = Menu(self.master)
self.master.config(menu=menubar)
find = Menu(menubar)
find.add_command(label='Oldest People Drugs', command=self.client_exit)
find.add_command(label='Drugs Capacity', command=self.client_exit)
find.add_command(label='Last telephone calls', command=self.client_exit)
find.add_command(label='Our Drug Companies', command=self.client_exit)
find.add_command(label='Other Drug Companies', command=self.client_exit)
find.add_command(label='New Drugs From Partners', command=self.client_exit)
find.add_command(label='New Drugs From Other Companies', command=self.client_exit)
find.add_command(label='Drugs For A Patient', command=self.client_exit)
find.add_command(label='Number Of Contracts Order By Start Date', command=self.client_exit)
find.add_command(label='Number Of Contracts Order By End Date', command=self.client_exit)
find.add_command(label='Doctors With Average Patients Over 50', command=self.client_exit)
menubar.add_cascade(label='Find', menu=find)
smart_find = Menu(menubar)
smart_find.add_command(label='Ta sun8eta queries edw kai na mas petaei apo katw ape8eias ta tab tous mazi me tous pinakes')
smart_find.add_command(label='Doctor', command=self.client_exit)
smart_find.add_command(label='Patient', command=self.client_exit)
smart_find.add_command(label='Drug', command=self.client_exit)
smart_find.add_command(label='Pharmacies', command=self.client_exit)
smart_find.add_command(label='Prescription', command=self.client_exit)
menubar.add_cascade(label='Smart Find', menu=smart_find)
table = Menu(menubar)
viewmenu = Menu(table)
viewmenu.add_command(label='Patients', command=self.client_exit)
viewmenu.add_command(label='Doctors', command=self.client_exit)
viewmenu.add_command(label='Drugs', command=self.client_exit)
viewmenu.add_command(label='Pharmacies', command=self.client_exit)
viewmenu.add_command(label='Prescriptions', command=self.client_exit)
table.add_command(label='Instert', command=self.client_exit)
table.add_command(label='Delete', command=self.client_exit)
table.add_command(label='Update', command=self.client_exit)
table.add_separator()
table.add_cascade(label='View', menu= viewmenu)
menubar.add_cascade(label='Table', menu=table)
exit = Menu(menubar)
exit.add_command(label='Are you sure you want to exit?', command=self.client_exit)
menubar.add_cascade(label='Exit', menu=exit)
def client_exit(self):
exit()
root = Tk()
root.geometry("683x384")
background_image= PhotoImage(file = "./basemasterx3000.png")
background_label = Label(root, image=background_image, bg='black')
background_label.place(x=0, y=0, relwidth=1, relheight=1)
app = Window(root)
root.mainloop()