demos/03_application.py
author Radek Brich <radek.brich@devl.cz>
Wed, 26 Mar 2014 09:08:10 +0100
changeset 91 de80e140b0ec
parent 89 94f5baef19ac
child 92 b97c4e25ed6d
permissions -rwxr-xr-x
Add clipping for Buffer draw operations.

#!/usr/bin/env python3

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

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