demos/03_application.py
author Radek Brich <radek.brich@devl.cz>
Tue, 18 Mar 2014 22:39:21 +0100
changeset 88 90d00354dc70
parent 87 ee5ea9671f28
child 89 94f5baef19ac
permissions -rwxr-xr-x
Add WindowManager, basic event handling.

#!/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()