demos/03_application.py
changeset 97 0c2e0c09ba5c
parent 92 b97c4e25ed6d
child 109 105b1affc3c2
--- a/demos/03_application.py	Fri Mar 28 14:58:20 2014 +0100
+++ b/demos/03_application.py	Fri Mar 28 19:58:59 2014 +0100
@@ -5,6 +5,7 @@
 from tuikit.core.application import Application
 from tuikit.widgets.label import Label
 from tuikit.widgets.button import Button
+from tuikit.widgets.textfield import TextField
 
 label = Label('Hello there!')
 label.pos.update(20, 10)
@@ -12,7 +13,12 @@
 button = Button()
 button.pos.update(20, 20)
 
+field = TextField('text field')
+field.pos.update(20, 30)
+
 app = Application()
 app.root_window.add(label)
 app.root_window.add(button)
+app.root_window.add(field)
+app.root_window.focus_child = field
 app.start()