demo_checkbox.py
changeset 42 0224ce40792f
parent 41 37b7dfc3eae6
child 45 43b2279b06e1
equal deleted inserted replaced
41:37b7dfc3eae6 42:0224ce40792f
    10 class MyApplication(Application):
    10 class MyApplication(Application):
    11     def __init__(self):
    11     def __init__(self):
    12         Application.__init__(self)
    12         Application.__init__(self)
    13         self.top.connect('keypress', self.on_top_keypress)
    13         self.top.connect('keypress', self.on_top_keypress)
    14 
    14 
    15         vert = VerticalLayout(homogeneous=False)
    15         self.top.layout = VerticalLayout(homogeneous=False)
    16         self.top.layout(vert)
       
    17 
    16 
    18         combo = ComboBox(items=['abc', 'xyz'])
    17         combo = ComboBox(items=['abc', 'xyz'])
    19         self.top.add(combo)
    18         self.top.add(combo)
    20 
    19 
    21         for i in range(10):
    20         for i in range(10):