-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain_test1.py
47 lines (35 loc) · 1005 Bytes
/
main_test1.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
36
37
38
39
40
41
42
43
44
45
46
from tkinter import *
from tkinter import messagebox as msg
from tkinter import font
import subprocess as sb
def callLogin():
global win
win.destroy()
sb.call("login.py",shell=True)
def callRegister():
global win
#win.destroy()
sb.call("registration.py",shell=True)
def callGuest():
pass
win = Tk()
win.title("Eveniser - Login")
win.geometry("500x300+400+100")
win.resizable(0,0)
f1 = Frame()
f1.pack()
Label(f1,text="Eveniser",font=("Bookman Old Style", 30)).grid(row=0,column=1)
f2 = Frame()
f2.pack()
Label(f2,text="\n\n\n").grid(row=1,column=1)
b1 = Button(f2,text = "Login", width="12",command = callLogin)
b1.grid(row=2,column=0)
Label(f2,text=" ").grid(row=2,column=1)
b2 = Button(f2,text = "Register", width="12",command = callRegister)
b2.grid(row=2,column=2)
f3 = Frame()
f3.pack()
Label(f3,text="\n").grid(row=3,column=1)
b3 = Button(f3,text = "Guest", width="15",command = callGuest)
b3.grid(row=4,column=1)
win.mainloop()