-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathtabgroup.py
More file actions
46 lines (44 loc) · 1.14 KB
/
tabgroup.py
File metadata and controls
46 lines (44 loc) · 1.14 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
import TkEasyGUI as eg
layout = [
[
eg.TabGroup(
layout=[
[
eg.Tab(
"Tab 1",
[
[eg.Text("This is Tab 1")],
[eg.Text("This is Tab 1")],
[eg.Text("This is Tab 1")],
[eg.Text("This is Tab 1")],
[eg.Text("This is Tab 1")],
[eg.Button("Button 1")],
],
)
],
[
eg.Tab(
"Tab 2",
[[eg.Text("This is Tab 2")], [eg.Button("Button 2")]],
)
],
],
vertical_alignment="top",
expand_x=True,
expand_y=True,
)
]
]
# window create
window = eg.Window(
"UI test",
layout=layout,
font=("Arial", 12),
finalize=True,
resizable=True,
)
# event loop
while window.is_running():
event, values = window.read()
print("#", event, values)
window.close()