equal
deleted
inserted
replaced
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) |