demo_tableview.py
changeset 42 0224ce40792f
parent 41 37b7dfc3eae6
child 45 43b2279b06e1
equal deleted inserted replaced
41:37b7dfc3eae6 42:0224ce40792f
    27         for x in range(10):
    27         for x in range(10):
    28             view.addcolumn(title='head'+str(x))
    28             view.addcolumn(title='head'+str(x))
    29 
    29 
    30         self.top.add(view, expand=True, fill=True)
    30         self.top.add(view, expand=True, fill=True)
    31 
    31 
    32         vert = VerticalLayout()
    32         self.top.layout = VerticalLayout()
    33         self.top.layout(vert)
       
    34 
    33 
    35     def on_top_keypress(self, ev):
    34     def on_top_keypress(self, ev):
    36         if ev.keyname == 'escape':
    35         if ev.keyname == 'escape':
    37             self.terminate()
    36             self.terminate()
    38 
    37