demos/03_application.py
author Radek Brich <radek.brich@devl.cz>
Mon, 17 Mar 2014 23:44:18 +0100
changeset 87 ee5ea9671f28
parent 86 0978fb755d31
child 89 94f5baef19ac
permissions -rwxr-xr-x
Add core Widget, Container. Add widgets Label.

#!/usr/bin/env python3

import sys
sys.path.append('..')

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

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

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