-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTryViewAppArch1.py
More file actions
58 lines (45 loc) · 1.23 KB
/
TryViewAppArch1.py
File metadata and controls
58 lines (45 loc) · 1.23 KB
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
52
53
54
55
56
57
58
'''POC DocView GdH 19-11-2017
POC architectuur Docview
doel App op basis van tk.Tk() met twee frames :
- Frame met QBE selecties
- Frame met output van de Query's met scrollbars
POC
- App
- TopFrame met label
- BottomFrame met label
- App.init()
frame'''
'''
import tkinter as tk
class Root(tk.Tk):
def __init__(self):
super().__init__()
self.label = tk.Label(self, text="Hello World", padx=5, pady=5)
self.label.pack()
if __name__ == "__main__":
root = Root()
root.mainloop()
'''
import tkinter as tk
class Root(tk.Tk):
def __init__(self):
super().__init__()
self.TF = TopFrame()
self.TF.pack()
self.BF = BottomFrame()
self.BF.pack()
# self.label = tk.Label(self, text="Hello World", padx=5, pady=5)
# self.label.pack()
class TopFrame(tk.Frame):
def __init__(self):
super().__init__()
self.TopLabel = tk.Label(self, text = "I 've been Framed")
self.TopLabel.pack()
class BottomFrame(tk.Frame):
def __init__(self):
super().__init__()
self.BottomLabel = tk.Label(self, text = "I 've been Framed too")
self.BottomLabel.pack()
if __name__ == "__main__":
root = Root()
root.mainloop()