Features/TableView Widget/Testing
< Features | TableView Widget
Jump to navigation
Jump to search
Revision as of 01:24, 28 November 2009 by Alsroot (talk | contribs) (→Simple example for SmootTable widget)
Simple example for SmootTable widget
import gtk from sugar.graphics.smoothtable import SmoothTable window = gtk.Window() scrolled = gtk.ScrolledWindow() scrolled.set_policy(gtk.POLICY_ALWAYS, gtk.POLICY_ALWAYS) window.add(scrolled) class Cell(gtk.Button): def do_fill_in(self, row, column): self.props.label = '%s:%s' % (row, column) table = SmoothTable(Cell, 3, 3) table.row_count = 100 scrolled.add(table) window.show_all() gtk.main()