demos/03_application.py
changeset 89 94f5baef19ac
parent 87 ee5ea9671f28
child 92 b97c4e25ed6d
equal deleted inserted replaced
88:90d00354dc70 89:94f5baef19ac
     3 import sys
     3 import sys
     4 sys.path.append('..')
     4 sys.path.append('..')
     5 
     5 
     6 from tuikit.core.application import Application
     6 from tuikit.core.application import Application
     7 from tuikit.widgets.label import Label
     7 from tuikit.widgets.label import Label
       
     8 from tuikit.widgets.button import Button
     8 
     9 
     9 label = Label('Hello there!')
    10 label = Label('Hello there!')
    10 label.pos.update(20, 10)
    11 label.pos.update(20, 10)
    11 
    12 
       
    13 button = Button()
       
    14 button.pos.update(20, 20)
       
    15 
    12 app = Application()
    16 app = Application()
    13 app.root_window.add(label)
    17 app.root_window.add(label)
       
    18 app.root_window.add(button)
    14 app.start()
    19 app.start()