equal
  deleted
  inserted
  replaced
  
    
    
     2 # -*- coding: utf-8 -*-  | 
     2 # -*- coding: utf-8 -*-  | 
     3   | 
     3   | 
     4 import locale  | 
     4 import locale  | 
     5 locale.setlocale(locale.LC_ALL, '')  | 
     5 locale.setlocale(locale.LC_ALL, '')  | 
     6   | 
     6   | 
     7 from tuikit import *  | 
     7 from tuikit import Application, VerticalLayout, ComboBox, Checkbox  | 
     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 = VerticalLayout(homogeneous=False)  | 
    13         self.top.add_handler('keypress', self.on_top_keypress) | 
    14         self.top.add_handler('keypress', self.on_top_keypress) | 
    14   | 
         | 
    15         self.top.layout = VerticalLayout(homogeneous=False)  | 
         | 
    16   | 
    15   | 
    17         combo = ComboBox(items=['abc', 'xyz'])  | 
    16         combo = ComboBox(items=['abc', 'xyz'])  | 
    18         self.top.add(combo)  | 
    17         self.top.add(combo)  | 
    19   | 
    18   | 
    20         for i in range(10):  | 
    19         for i in range(10):  |