demos/03_application.py
author Radek Brich <radek.brich@devl.cz>
Wed, 20 Aug 2014 14:48:16 +0200
changeset 100 3b2df86d8f94
parent 97 0c2e0c09ba5c
child 109 105b1affc3c2
permissions -rwxr-xr-x
Update TableView (old uncommitted work).

#!/usr/bin/env python3

import demobase

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)

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()