demos/03_application.py
changeset 114 26c02bd94bd9
parent 111 b055add74b18
child 117 8680c2333546
equal deleted inserted replaced
113:6796adfdc7eb 114:26c02bd94bd9
     6 from tuikit.widgets.label import Label
     6 from tuikit.widgets.label import Label
     7 from tuikit.widgets.button import Button
     7 from tuikit.widgets.button import Button
     8 from tuikit.widgets.textfield import TextField
     8 from tuikit.widgets.textfield import TextField
     9 
     9 
    10 label = Label('Hello there!')
    10 label = Label('Hello there!')
    11 label.pos.update(20, 10)
    11 label.posreq.update(20, 10)
    12 
    12 
    13 button1 = Button()
    13 button1 = Button()
    14 button1.pos.update(20, 20)
    14 button1.posreq.update(20, 20)
    15 button2 = Button()
    15 button2 = Button()
    16 button2.pos.update(30, 20)
    16 button2.posreq.update(30, 20)
    17 
    17 
    18 field = TextField('text field')
    18 field = TextField('text field')
    19 field.pos.update(20, 30)
    19 field.posreq.update(20, 30)
    20 
    20 
    21 app = Application()
    21 app = Application()
    22 app.root_window.add(label)
    22 app.root_window.add(label)
    23 app.root_window.add(button1)
    23 app.root_window.add(button1)
    24 app.root_window.add(button2)
    24 app.root_window.add(button2)