-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathseatbook_check_book_page2.py
29 lines (24 loc) · 1.07 KB
/
seatbook_check_book_page2.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
from tkinter import *
root=Tk()
h,w=root.winfo_screenheight(),root.winfo_screenwidth()
root.geometry('%dx%d+0+0'%(w,h))
bus=PhotoImage(file='.\\Bus_for_project.png')
Label(root,image=bus).grid(row=0,column=0,columnspan=10,padx=w//3)
Label(root,text='Online Bus Booking System',bg='light blue',fg='red',font='Arial 14 bold').grid(row=1,column=0,columnspan=10)
def fun1():
root.destroy()
import seat_booking_3
root.bind('<KeyPress>',fun1 )
def fun2():
root.destroy()
import checkyourbooking_page5
root.bind('<KeyPress>',fun2 )
def fun3():
root.destroy()
import AddBusDetails_NewBusButton_page8
root.bind('<KeyPress>',fun3 )
Button(root,text='Seat Booking',bg='Light green',font='Arial 14 bold',command=fun1).grid(row=2,column=4,pady=50)
Button(root,text='Check Booked Seat',bg='Light green',font='Arial 14 bold',command=fun2).grid(row=2,column=5,pady=50)
Button(root,text='Add Bus Details',bg='Light green',font='Arial 14 bold',command=fun3).grid(row=2,column=6,pady=50)
Label(root,text='For Admin Only',fg='red',font='Arial 11 bold').grid(row=3,column=6)
root.mainloop()