demo_checkbox.py
changeset 45 43b2279b06e1
parent 42 0224ce40792f
child 62 2f61931520c9
equal deleted inserted replaced
44:d77f1ae3786c 45:43b2279b06e1
     8 
     8 
     9 
     9 
    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.add_handler('keypress', self.on_top_keypress)
    14 
    14 
    15         self.top.layout = VerticalLayout(homogeneous=False)
    15         self.top.layout = VerticalLayout(homogeneous=False)
    16 
    16 
    17         combo = ComboBox(items=['abc', 'xyz'])
    17         combo = ComboBox(items=['abc', 'xyz'])
    18         self.top.add(combo)
    18         self.top.add(combo)