-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmenu.py
40 lines (30 loc) · 1.02 KB
/
menu.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
from tkinter import *
from tkinter import ttk
from tkinter import messagebox
menu = Tk()
menu.geometry("900x900")
menu.config(bg='black')
#Functions
def pr():
menu.destroy()
import HMS
def dt():
menu.destroy()
import dr
def exit():
confirm=messagebox.askyesno('Confirmation','Are you sure you want to exit')
if confirm>0:
menu.destroy()
return
#Heading
Label (menu, text='MENU', font ='inpack 31 bold',bg='red',fg='white').pack()
#precription Botton
pr_btn=Button(menu,text='Precription managment',font='ariel 15 bold',bg='white',fg='red',bd=6,cursor='hand2',command=pr)
pr_btn.place(x=250,y=200,width=450)
#precription Botton
pr_btn=Button(menu,text='Doctor managment',font='ariel 15 bold',bg='white',fg='red',bd=6,cursor='hand2',command=dt)
pr_btn.place(x=250,y=300,width=450)
#Exit botton
exit_btn=Button(menu,text='Exit',font='ariel 15 bold',bg='red',fg='white',bd=6,cursor='hand2',command=exit)
exit_btn.place(x=250,y=400,width=450)
mainloop()