-
-
Notifications
You must be signed in to change notification settings - Fork 105
/
Copy pathbutton_cb.ui
50 lines (50 loc) · 2 KB
/
button_cb.ui
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
<?xml version='1.0' encoding='utf-8'?>
<interface version="1.2">
<object class="tk.Toplevel" id="mainwindow">
<property name="geometry">300x180</property>
<property name="height">200</property>
<property name="title" translatable="yes">Button Commands Example</property>
<property name="width">200</property>
<child>
<object class="ttk.Frame" id="mainframe">
<property name="height">250</property>
<property name="padding">10</property>
<property name="width">250</property>
<layout manager="pack" />
<child>
<object class="ttk.Label" id="label_1">
<property name="anchor">e</property>
<property name="padding">10</property>
<property name="text" translatable="yes">Button command test!!</property>
<layout manager="grid">
<property name="column">0</property>
<property name="columnspan">2</property>
<property name="row">0</property>
<property name="sticky">ew</property>
</layout>
</object>
</child>
<child>
<object class="ttk.Button" id="my_button">
<property name="command" type="command" cbtype="simple" args="">on_my_button_clicked</property>
<property name="text" translatable="yes">Click me</property>
<layout manager="grid">
<property name="column">0</property>
<property name="row">1</property>
</layout>
</object>
</child>
<child>
<object class="ttk.Button" id="button_2">
<property name="command" type="command" cbtype="simple" args="">on_button2_clicked</property>
<property name="text" translatable="yes">Button 2</property>
<layout manager="grid">
<property name="column">1</property>
<property name="row">1</property>
</layout>
</object>
</child>
</object>
</child>
</object>
</interface>