Open main menu
Home
Random
Log in
Settings
About Sugar Labs
Disclaimers
Sugar Labs
Search
Changes
← Older edit
Newer edit →
Development Team/Almanac/sugar.graphics.toolbutton
(view source)
Revision as of 19:52, 24 February 2010
113 bytes added
,
19:52, 24 February 2010
→How do I set the default toolbar menu? =
Line 57:
Line 57:
customButton.props.accelerator = _('<ctrl>plus')
customButton.props.accelerator = _('<ctrl>plus')
−
=== How do I set the default toolbar menu?
=
===
+
=== How do I set the default toolbar menu? ===
Use the set_expanded() method of the ToolbarButton class.
Use the set_expanded() method of the ToolbarButton class.
my_toolbar_button.set_expanded(True)
my_toolbar_button.set_expanded(True)
+
+
When using pre-0.86 toolbars, use the set_current_toolbar() method:
+
+
self.toolbox.set_current_toolbar(1)
Walter
Bureaucrats
,
Administrators
10,579
edits