Update interface
This commit is contained in:
parent
dd45973171
commit
5fc9c15b1d
17
interface.py
17
interface.py
|
@ -7,11 +7,11 @@ class Interface(tk.Frame):
|
|||
self.create_widgets()
|
||||
|
||||
def process(self):
|
||||
print(self.simulate.get())
|
||||
self.vars = {'simulate': self.simulate.get(), 'feed' :
|
||||
self.feed.get(),'video':self.video.get()}
|
||||
print(self.vars)
|
||||
|
||||
def create_widgets(self):
|
||||
# inputs.config(bd=4,bg="blue")
|
||||
# inputs.pack()
|
||||
#
|
||||
tk.Label(self.master, padx=10,text="Youtube URL",bg="red").grid(row=0)
|
||||
tk.Label(self.master, padx=10,text="Folder").grid(row=1)
|
||||
|
@ -23,13 +23,16 @@ class Interface(tk.Frame):
|
|||
|
||||
|
||||
self.simulate = tk.IntVar()
|
||||
tk.Checkbutton(self.master, text="simulate", variable=self.simulate
|
||||
).grid(row=3,column=1,sticky='WE')
|
||||
self.feed = tk.IntVar()
|
||||
self.video = tk.IntVar()
|
||||
|
||||
|
||||
tk.Checkbutton(self.master, text="simulate", variable=self.simulate).grid(row=3,column=1,sticky='WE')
|
||||
tk.Checkbutton(self.master, text="feed", variable=self.feed).grid(row=3,column=2,sticky='WE')
|
||||
tk.Checkbutton(self.master, text="video only", variable=self.video).grid(row=3,column=3,sticky='WE')
|
||||
|
||||
tk.Button(self.master,text='Interrupt').grid(row=4,column=7,sticky='WE')
|
||||
tk.Button(self.master,text='Process', command =
|
||||
self.process).grid(row=4,column=8,sticky='WE')
|
||||
tk.Button(self.master,text='Process', command = self.process).grid(row=4,column=8,sticky='WE')
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
Loading…
Reference in New Issue