-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutputApp.py
47 lines (34 loc) · 1.36 KB
/
outputApp.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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import Tkinter as tk #import modułu biblioteki Tkinter -- okienka
class Application(tk.Frame):
def __init__(self, master=None):
tk.Frame.__init__(self, master)
self.grid(sticky=tk.N+tk.S+tk.E+tk.W)
# Widgety interfejsu graficznego
self.label_videoModified = None
self.label_videoOrigin = None
self.snapshotButton = None
self.createWidgets()
def createWidgets(self):
top=self.winfo_toplevel()
top.rowconfigure(0, weight=1)
top.columnconfigure(0, weight=1)
self.columnconfigure(0,weight=1)
self.columnconfigure(1,weight=1)
self.columnconfigure(2,weight=1)
self.columnconfigure(3,weight=1)
self.rowconfigure(0, weight=1)
self.rowconfigure(1, weight=1)
self.snapshotButton = tk.Button(self, text="Snapshot",command=self.snapshot)
self.snapshotButton.grid(column=0,row=0,columnspan=1,sticky=tk.NW+tk.SW)
self.label_videoModified = tk.Label(self)
self.label_videoModified.grid(row=1,column=0,sticky=tk.N+tk.S+tk.S+tk.E)
self.label_videoOrigin = tk.Label(self)
self.label_videoOrigin.grid(row=1,column=1)
def snapshot(self):
pass
if __name__=="__main__":
app = Application()
app.master.title('Sample application')
app.mainloop()