-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathgui.py
More file actions
124 lines (123 loc) · 5.39 KB
/
gui.py
File metadata and controls
124 lines (123 loc) · 5.39 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
from tkinter import *
import sys
#Medicine Menu
def mclickedbtn1():
print("Hello")
def mclickedbtn2():
print("Hello")
def mclickedbtn3():
print("Hello")
def mclickedbtn4():
print("Hello")
def clickedbtn1():
medicine_menu_window = Tk()
medicine_menu_window.geometry('350x200')
medicine_menu_window.title("Pharmacy Management Software")
lbl = Label(medicine_menu_window, text="Medicine Menu!")
lbl.grid(column=0, row=0)
lbl2 = Label(medicine_menu_window, text="What would you like to do!")
lbl2.grid(column=0, row=1)
btn1 = Button(medicine_menu_window, text="Add New Medicine",fg="red", command=mclickedbtn1)
btn1.grid(column=0, row=2)
btn2 = Button(medicine_menu_window, text="Search Medicine",fg="red", command=mclickedbtn2)
btn2.grid(column=0, row=3)
btn3 = Button(medicine_menu_window, text="Update Medicine",fg="red", command=mclickedbtn3)
btn3.grid(column=0, row=4)
btn4 = Button(medicine_menu_window, text="Medicines to be purchased",fg="red", command=mclickedbtn4)
btn4.grid(column=0, row=5)
btn4 = Button(medicine_menu_window, text="Return to main menu",fg="red", command=mclickedbtn4)
btn4.grid(column=0, row=6)
medicine_menu_window.mainloop()
#Customer Menu
def clickedbtn2():
c_menu_window = Tk()
c_menu_window.geometry('350x200')
c_menu_window.title("Pharmacy Management Software")
lbl = Label(c_menu_window, text="Customer Menu!")
lbl.grid(column=0, row=0)
lbl2 = Label(c_menu_window, text="What would you like to do!")
lbl2.grid(column=0, row=1)
btn1 = Button(c_menu_window, text="Search Customer",fg="red", command=mclickedbtn1)
btn1.grid(column=0, row=2)
btn2 = Button(c_menu_window, text="New Customer",fg="red", command=mclickedbtn2)
btn2.grid(column=0, row=3)
btn3 = Button(c_menu_window, text="Update Customer Info",fg="red", command=mclickedbtn3)
btn3.grid(column=0, row=4)
btn4 = Button(c_menu_window, text="Return to main menu",fg="red", command=mclickedbtn4)
btn4.grid(column=0, row=5)
c_menu_window.mainloop()
#Supplier Menu
def clickedbtn3():
s_menu_window = Tk()
s_menu_window.geometry('350x200')
s_menu_window.title("Pharmacy Management Software")
lbl = Label(s_menu_window, text="Supplier Menu!")
lbl.grid(column=0, row=0)
lbl2 = Label(s_menu_window, text="What would you like to do!")
lbl2.grid(column=0, row=1)
btn1 = Button(s_menu_window, text="Search Supplier",fg="red", command=mclickedbtn1)
btn1.grid(column=0, row=2)
btn2 = Button(s_menu_window, text="New Supplier",fg="red", command=mclickedbtn2)
btn2.grid(column=0, row=3)
btn3 = Button(s_menu_window, text="Update Supplier Info",fg="red", command=mclickedbtn3)
btn3.grid(column=0, row=4)
btn4 = Button(s_menu_window, text="Return to main menu",fg="red", command=mclickedbtn4)
btn4.grid(column=0, row=5)
s_menu_window.mainloop()
#Report Menu
def clickedbtn4():
r_menu_window = Tk()
r_menu_window.geometry('350x200')
r_menu_window.title("Pharmacy Management Software")
lbl = Label(r_menu_window, text="Supplier Menu!")
lbl.grid(column=0, row=0)
lbl2 = Label(r_menu_window, text="What would you like to do!")
lbl2.grid(column=0, row=1)
btn1 = Button(r_menu_window, text="Day Sales",fg="red", command=mclickedbtn1)
btn1.grid(column=0, row=2)
btn2 = Button(r_menu_window, text="Month Sales",fg="red", command=mclickedbtn2)
btn2.grid(column=0, row=3)
btn3 = Button(r_menu_window, text="Day Purchase",fg="red", command=mclickedbtn3)
btn3.grid(column=0, row=4)
btn3 = Button(r_menu_window, text="Month Purchase",fg="red", command=mclickedbtn3)
btn3.grid(column=0, row=5)
btn3 = Button(r_menu_window, text="Profit Report",fg="red", command=mclickedbtn3)
btn3.grid(column=0, row=6)
btn4 = Button(r_menu_window, text="Return to main menu",fg="red", command=mclickedbtn4)
btn4.grid(column=0, row=7)
r_menu_window.mainloop()
#Invoicing Menu
def clickedbtn5():
r_menu_window = Tk()
r_menu_window.geometry('350x200')
r_menu_window.title("Pharmacy Management Software")
lbl = Label(r_menu_window, text="Invoice Menu!")
lbl.grid(column=0, row=0)
lbl2 = Label(r_menu_window, text="What would you like to do!")
lbl2.grid(column=0, row=1)
btn1 = Button(r_menu_window, text="Supplier Invoice",fg="red", command=mclickedbtn1)
btn1.grid(column=0, row=2)
btn2 = Button(r_menu_window, text="Customer Invoice",fg="red", command=mclickedbtn2)
btn2.grid(column=0, row=3)
btn4 = Button(r_menu_window, text="Return to main menu",fg="red", command=mclickedbtn4)
btn4.grid(column=0, row=4)
r_menu_window.mainloop()
#Main Menu
window = Tk()
window.geometry('350x200')
window.title("Pharmacy Management Software")
lbl = Label(window, text="Welcome to Pharmacy Management Software!")
lbl.grid(column=0, row=0)
lbl2 = Label(window, text="What would you like to do!")
lbl2.grid(column=0, row=1)
btn1 = Button(window, text="Medicine Menu",fg="red", command=clickedbtn1)
btn1.grid(column=0, row=2)
btn2 = Button(window, text="Customer Menu",fg="red", command=clickedbtn2)
btn2.grid(column=0, row=3)
btn3 = Button(window, text="Supplier Menu",fg="red", command=clickedbtn3)
btn3.grid(column=0, row=4)
btn4 = Button(window, text="Report Menu",fg="red", command=clickedbtn4)
btn4.grid(column=0, row=5)
btn5 = Button(window, text="Invoicing Menu",fg="red", command=clickedbtn5)
btn5.grid(column=0, row=6)
window.mainloop()