-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgui.py
51 lines (36 loc) · 1.89 KB
/
gui.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
47
48
49
50
51
from tkinter import *
from tkinter import messagebox
import main
window = Tk()
window.title("Automeet by Chandan")
window.configure(background="gray10")
window.geometry('310x250')
window.resizable(False, False)
#messagebox.showinfo('Message title','Message content')
lbl = Label(window, text="Gmeet ID: ", font=("Arial Bold", 10), fg="White", bg="Black")
lbl.grid(column=0, row=0,pady=5,padx=10, sticky=W)
meetcode = Entry(window,width=20)
meetcode.grid(column=1, row=0, pady=10, sticky=W)
meetcode.focus()
lbl = Label(window, text="Message: ", font=("Arial Bold", 10), fg="White",bg="Black")
lbl.grid(column=0, row=1, sticky=W,padx=10)
message = Entry(window,width=20)
message.grid(column=1, row=1, pady=10, sticky=W)
lbl = Label(window, text="Keyword: ", font=("Arial Bold", 10), fg="White", bg="Black")
lbl.grid(column=0, row=2, sticky=W,padx=10)
keyword = Entry(window,width=20)
keyword.grid(column=1, row=2, pady=10, sticky=W)
lbl = Label(window, text="Time Gap: ", font=("Arial Bold", 10), fg="White", bg="Black")
lbl.grid(column=0, row=3, sticky=W,padx=10)
timeGap = Entry(window,width=20)
timeGap.grid(column=1, row=3, pady=10, sticky=W)
selected = IntVar ()
rad1 = Radiobutton(window,text='Only Join Meet', value=1,bg="Grey10",fg="Green", font=("Arial Bold", 10),variable=selected).grid(column=0, row=4, sticky=W,padx=5)
rad2 = Radiobutton(window,text='Mark Attendence', value=2,bg="Grey10",fg="Green", font=("Arial Bold", 10),variable=selected).grid(column=0, row=5, sticky=W,padx=5)
rad3 = Radiobutton(window,text='Recognize Keyword', value=3,bg="Grey10",fg="Green", font=("Arial Bold", 10),variable=selected).grid(column=0, row=6, sticky=W,padx=5)
def submit():
print('Submit Button Clicked')
exec(open('main.py').read())
submit_btn = Button(window, text="SUBMIT", font=("Arial Bold", 10), bg="green", fg="White",width=14,command=lambda: submit())
submit_btn.grid(column=1, row=5)
window.mainloop()