Changes

Jump to navigation Jump to search
Line 11: Line 11:  
  window.add(scrolled)
 
  window.add(scrolled)
 
   
 
   
  def do_fill_in(cell, row, column):
+
  class Cell(gtk.Button):
    cell.props.label = '%s:%s' % (row, column)
+
    def do_fill_in(self, row, column):
  table = SmoothTable(3, 3, gtk.Button, do_fill_in)
+
        self.props.label = '%s:%s' % (row, column)
  table.bin_rows = 100
+
 +
  table = SmoothTable(Cell, 3, 3)
 +
  table.row_count = 100
 
  scrolled.add(table)
 
  scrolled.add(table)
 
   
 
   
 
  window.show_all()
 
  window.show_all()
 
  gtk.main()
 
  gtk.main()

Navigation menu