demos/03_application.py
author Radek Brich <radek.brich@devl.cz>
Fri, 28 Mar 2014 14:58:12 +0100
changeset 95 05392e369ede
parent 92 b97c4e25ed6d
child 97 0c2e0c09ba5c
permissions -rwxr-xr-x
Refactoring: Swap drawing operations parameters. Coords are now last and have default values.

#!/usr/bin/env python3

import demobase

from tuikit.core.application import Application
from tuikit.widgets.label import Label
from tuikit.widgets.button import Button

label = Label('Hello there!')
label.pos.update(20, 10)

button = Button()
button.pos.update(20, 20)

app = Application()
app.root_window.add(label)
app.root_window.add(button)
app.start()