forked from AryanGuragain/EventManagement
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
29 lines (24 loc) · 1.32 KB
/
main.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 *
from Book import Book
from CreateEvent import CreateEvent
from ViewTickets import ViewTickets
from ViewEvents import ViewEvents
from CancelTicket import CancelTicket
top = Tk()
top.geometry('415x450')
top.title('Event Management')
Label(
text="Event Management Project FOCP",
bg="purple",
fg="white",
font=("Arial", 18),
width=30,
height=2
).grid(row=0, column=0, columnspan=2, pady=(10, 20))
Button(top, text='Book Ticket', bg='red', fg='white', width=12, font=('Poppins', 18), command=lambda: Book()).grid(row=1, column=0, padx=25, pady=30)
Button(top, text='Create Event', bg='red', fg='white', width=12, font=('Poppins', 18), command=lambda:CreateEvent()).grid(row=1, column=1)
Button(top, text='View Tickets', bg='red', fg='white', width=12, font=('Poppins', 18), command=lambda:ViewTickets()).grid(row=2, pady=20, column=0)
Button(top, text='View Events', bg='red', fg='white', width=12, font=('Poppins', 18), command=lambda:ViewEvents()).grid(row=2, column=1)
Button(top, text='Cancel Ticket', bg='red', fg='white', width=12, font=('Poppins', 18), command=lambda: CancelTicket()).grid(row=3, pady=25, column=0)
Button(top, text='Quit App', bg='red', fg='white', width=12, font=('Poppins', 18), command=lambda: top.destroy()).grid(row=3, column=1)
top.mainloop()