-
Notifications
You must be signed in to change notification settings - Fork 2
/
main.py
28 lines (28 loc) · 827 Bytes
/
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
from lib import *
class mains(object):
@classmethod
def Hello(self):
self.quit()
from login import *
@classmethod
def Tkwindow(self):
global master , frame
master=Tk()
master.geometry('{}x{}'.format(1080,480))
greetings="{}!, PLease select an option Below to Continue".format("")#enter any user name
msg=Label(master,text=greetings)
msg.configure(background='lightgreen', font=('times', 24, 'italic'))
msg.pack()
frame = Frame(master)
frame.pack()
button = Button(frame, text="Agree and Continue.", fg="blue",command=self.Hello)
button1=Button(frame,text='Exit',fg='red',command=self.quit)
button.pack(side=LEFT)
button1.pack(side=RIGHT)
mainloop()
@classmethod
def quit(self):
master.destroy()
if __name__=='__main__':
ob=mains()
ob.Tkwindow()