-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
165 lines (116 loc) · 4.88 KB
/
Copy pathmain.py
File metadata and controls
165 lines (116 loc) · 4.88 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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
#loging page 1
from tkinter import *
def login():
root = Tk()
root.geometry('500x500')
root.title("Loging Page")
label_0 = Label(root, text="User Loging",width=20,font=("bold", 20))
label_0.place(x=100,y=53)
label_1 = Label(root, text="User Name",width=20,font=("bold", 10))
label_1.place(x=80,y=130)
entry_1 = Entry(root)
entry_1.place(x=240,y=130)
label_2 = Label(root, text="Password",width=20,font=("bold", 10))
label_2.place(x=68,y=180)
entry_2 = Entry(root)
entry_2.place(x=240,y=180)
Button(root, text='Login Now',width=20,bg='brown',fg='white').place(x=180,y=280)
Button(root, text='New User',width=20,bg='black',fg='white').place(x=180,y=330)
root.mainloop()
#registration new user 2
from tkinter import *
def register():
root = Tk()
root.geometry('500x500')
root.title("Registration Form")
label_0 = Label(root, text="Cab Registration Form",width=20,font=("bold", 20))
label_0.place(x=100,y=53)
label_1 = Label(root, text="Full Name",width=20,font=("bold", 10))
label_1.place(x=80,y=130)
entry_1 = Entry(root)
entry_1.place(x=240,y=130)
label_2 = Label(root, text="Email",width=20,font=("bold", 10))
label_2.place(x=68,y=180)
entry_2 = Entry(root)
entry_2.place(x=240,y=180)
label_3 = Label(root, text="Gender",width=20,font=("bold", 10))
label_3.place(x=70,y=230)
var = IntVar()
Radiobutton(root, text="Male",padx = 5, variable=var, value=1).place(x=235,y=230)
Radiobutton(root, text="Female",padx = 20, variable=var, value=2).place(x=290,y=230)
label_4 = Label(root, text="Phone NO",font=("bold", 10),width=20)
label_4.place(x=70,y=280)
entry_x= Entry(root)
entry_x.place(x=240,y=280)
label_4 = Label(root, text="Reg No",width=20,font=("bold", 10))
label_4.place(x=85,y=330)
entry_y= Entry(root)
entry_y.place(x=240,y=330)
Button(root, text='Submit',width=20,bg='brown',fg='white').place(x=180,y=380)
root.mainloop()
#Available Roots From 3
from tkinter import *
def booking():
root = Tk()
root.geometry('500x500')
root.title("Booking")
label_0 = Label(root, text="Booking Request",width=20,font=("bold", 20))
label_0.place(x=90,y=53)
label_1 = Label(root, text="Registered Mobile No",width=20,font=("bold", 10))
label_1.place(x=80,y=130)
entry_1 = Entry(root)
entry_1.place(x=240,y=130)
label_2 = Label(root, text="Select Date",width=20,font=("bold", 10))
label_2.place(x=68,y=180)
listx = ['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'];
c=StringVar()
droplist=OptionMenu(root,c, *listx)
droplist.config(width=3)
c.set('DATE')
droplist.place(x=260,y=180)
listy = ['1','2','3','4','5','6','7','8''9','10','11','12'];
c=StringVar()
droplist=OptionMenu(root,c, *listy)
droplist.config(width=7)
c.set('MONTH')
droplist.place(x=330,y=180)
listz = ['2019','2020','2021','2022','2023','2024','2025'];
c=StringVar()
droplist=OptionMenu(root,c, *listz)
droplist.config(width=3)
c.set('YEAR')
droplist.place(x=400,y=180)
label_3 = Label(root, text=" From To ",width=20,font=("bold", 10))
label_3.place(x=70,y=230)
list1 = ['Block(1-8)','Block(8-14)','Block(16-24)','Block(25-53)','Boys Hostel','Girl Hostel'];
c=StringVar()
droplist=OptionMenu(root,c, *list1)
droplist.config(width=15)
c.set('Departure')
droplist.place(x=235,y=230)
label_4 = Label(root, text="To Place",width=20,font=("bold", 10))
label_4.place(x=70,y=280)
list2 = ['Block(1-8)','Block(8-14)','Block(16-24)','Block(25-53)','Boys Hostel','Girl Hostel'];
c=StringVar()
droplist=OptionMenu(root,c, *list2)
droplist.config(width=15)
c.set('Arrival')
droplist.place(x=240,y=280)
label_4 = Label(root, text="Option",width=20,font=("bold", 10))
label_4.place(x=85,y=330)
var1 = IntVar()
Checkbutton(root, text="Single", variable=var1).place(x=235,y=330)
var2 = IntVar()
Checkbutton(root, text="Multiple", variable=var2).place(x=290,y=330)
Button(root, text='Book Now',width=20,bg='brown',fg='white').place(x=180,y=380)
root.mainloop()
from tkinter import *
root = Tk()
root.geometry('500x200')
root.title("Cab Booking Site")
label_0 = Label(root, text="CAB BOOKING LPU",width=20,font=("bold", 20))
label_0.place(x=100,y=53)
Button(root, text='Login Now',width=20,bg='brown',fg='white',command=login).place(x=20,y=100)
Button(root, text='New User',width=20,bg='black',fg='white',command = register).place(x=180,y=100)
Button(root, text='Booking Request',width=20,bg='red',fg='white',command=booking).place(x=340,y=100)
root.mainloop()