demo_tableview.py
changeset 22 6ca8b2d221c3
parent 21 8553a6bd2d82
child 41 37b7dfc3eae6
equal deleted inserted replaced
21:8553a6bd2d82 22:6ca8b2d221c3
    14         Application.__init__(self)
    14         Application.__init__(self)
    15         self.top.connect('keypress', self.globalkeypress)
    15         self.top.connect('keypress', self.globalkeypress)
    16 
    16 
    17         data = []
    17         data = []
    18         for y in range(100):
    18         for y in range(100):
    19             row = [str(y)]
    19             row = [str(y+1)]
    20             for x in range(10):
    20             for x in range(10):
    21                 row.append('r{}:c{}'.format(y, x))
    21                 row.append('r{}:c{}'.format(y, x))
    22             data.append(row)
    22             data.append(row)
    23         model = TableModel(data)
    23         model = TableModel(data)
    24         
    24