Open main menu
Home
Random
Log in
Settings
About Sugar Labs
Disclaimers
Sugar Labs
Search
Changes
← Older edit
Newer edit →
Features/TableView Widget/Testing
(view source)
Revision as of 20:48, 27 November 2009
3 bytes added
,
20:48, 27 November 2009
→Simple example for SmootTable widget
Line 5:
Line 5:
from sugar.graphics.smoothtable import SmoothTable
from sugar.graphics.smoothtable import SmoothTable
−
+
window = gtk.Window()
window = gtk.Window()
−
+
scrolled = gtk.ScrolledWindow()
scrolled = gtk.ScrolledWindow()
scrolled.set_policy(gtk.POLICY_ALWAYS, gtk.POLICY_ALWAYS)
scrolled.set_policy(gtk.POLICY_ALWAYS, gtk.POLICY_ALWAYS)
window.add(scrolled)
window.add(scrolled)
−
+
def do_fill_in(cell, row, column):
def do_fill_in(cell, row, column):
cell.props.label = '%s:%s' % (row, column)
cell.props.label = '%s:%s' % (row, column)
Alsroot
Bots
,
Bureaucrats
,
Check users
,
Administrators
,
Widget editors
5,705
edits