equal
deleted
inserted
replaced
3 import demobase |
3 import demobase |
4 |
4 |
5 from tuikit.core.application import Application |
5 from tuikit.core.application import Application |
6 from tuikit.widgets.label import Label |
6 from tuikit.widgets.label import Label |
7 from tuikit.widgets.button import Button |
7 from tuikit.widgets.button import Button |
|
8 from tuikit.widgets.textfield import TextField |
8 |
9 |
9 label = Label('Hello there!') |
10 label = Label('Hello there!') |
10 label.pos.update(20, 10) |
11 label.pos.update(20, 10) |
11 |
12 |
12 button = Button() |
13 button = Button() |
13 button.pos.update(20, 20) |
14 button.pos.update(20, 20) |
14 |
15 |
|
16 field = TextField('text field') |
|
17 field.pos.update(20, 30) |
|
18 |
15 app = Application() |
19 app = Application() |
16 app.root_window.add(label) |
20 app.root_window.add(label) |
17 app.root_window.add(button) |
21 app.root_window.add(button) |
|
22 app.root_window.add(field) |
|
23 app.root_window.focus_child = field |
18 app.start() |
24 app.start() |