-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAddBusDetails_NewBusButton_page8.py
35 lines (32 loc) · 1.47 KB
/
AddBusDetails_NewBusButton_page8.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
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=15)
Label(root,text='Add Bus Details',bg='white',fg='green',font='Arial 11 bold').grid(row=2,column=0,columnspan=15,pady=20)
Label(root,text='Bus Id').grid(row=3,column=0)
Entry(root).grid(row=3,column=1)
Label(root,text='Bus Type').grid(row=3,column=2)
bus_type=StringVar()
bus_type.set('Bus type')
option=['AC 2x2','AC 3x2','Non AC 2x2','Non AC 3x2','AC Sleeper 2x1','Non AC Sleeper 2x1']
menu=OptionMenu(root,bus_type,*option)
menu.grid(row=3,column=3)
Label(root,text='Capacity').grid(row=3,column=4)
Entry(root).grid(row=3,column=5)
Label(root,text='Fare Rs').grid(row=3,column=6)
Entry(root).grid(row=3,column=7)
Label(root,text='Oprator Id').grid(row=3,column=8)
Entry(root).grid(row=3,column=9)
Label(root,text='Route Id').grid(row=3,column=10)
Entry(root).grid(row=3,column=11)
Button(root,text='Add Bus',bg='light green',font='Calibri 11').grid(row=4,column=6)
Button(root,text='Edit Bus',bg='Light green',font='Calibri 11').grid(row=4,column=7)
def fun():
root.destroy()
import seatbook_check_book_page2
root.bind('<KeyPress>',fun)
home=PhotoImage(file='.\\home.png')
Button(root,image=home,command=fun).grid(row=4,column=8)