-
Notifications
You must be signed in to change notification settings - Fork 590
/
Copy pathBilling.py
78 lines (50 loc) · 1.91 KB
/
Billing.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
77
78
from tkinter import *
window=Tk()
window.geometry("700x500")
#---------------calculting function
def calculate():
rice=e1.get()
samosa=e2.get()
those=e3.get()
tea=e4.get()
print(type(tea))
total=((int(rice)*250)+(int(samosa)*50)+(int(those)*40)+(int(tea)*30))
labelt=Label(window,text=total,font="times 28 bold")
labelt.place(x=250,y=580)
#----------------------------Title-------------------
label=Label(window,text="Kobzzzzzz Hotel",font="times 28 bold")
label.place(x=300,y=20)
#--------------------------menu section------
label1=Label(window,text="Menu",font="times 22 bold")
label1.place(x=400,y=70)
label2=Label(window,text="Rice & curry RS 250.00",font="times 18")
label2.place(x=350,y=120)
label3=Label(window,text="Samosa Rs50.00",font="times 18")
label3.place(x=350,y=150)
label4=Label(window,text="Those Rs40.00",font="times 18")
label4.place(x=350,y=180)
label5=Label(window,text="Tea Rs30.00",font="times 18")
label5.place(x=350,y=210)
#-------------------------------------biling section-------------------------------
label6=Label(window,text="Select the iterm",font="times 22 bold")
label6.place(x=100,y=70)
label6=Label(window,text="Rice & Curry",font="times 18")
label6.place(x=70,y=120)
e1=Entry(window)
e1.place(x=70,y=170)
label7=Label(window,text="Samosa",font="times 18")
label7.place(x=70,y=220)
e2=Entry(window)
e2.place(x=70,y=270)
label8=Label(window,text="Those",font="times 18")
label8.place(x=70,y=320)
e3=Entry(window)
e3.place(x=70,y=370)
label9=Label(window,text="Tea",font="times 18")
label9.place(x=70,y=430)
e4=Entry(window)
e4.place(x=70,y=480)
#---------------function button------------------
b1=Button(window,text="bill",width=20,command=calculate)
b1.place(x=250,y=550)
window.mainloop()