Changes
Development Team/Almanac/sugar.graphics.toolbox (view source)
Revision as of 15:20, 2 June 2008
, 15:20, 2 June 2008→How do I programmatically change the active toolbar in a toolbox?
=== How do I programmatically change the active toolbar in a toolbox? ===
=== How do I programmatically change the active toolbar in a toolbox? ===
The "set_current_toolbar()" method in the ToolBox class allows you to programmatically set which toolbar is active.
#Set the active toolbar using an integer index assigned to each toolbar in your activity.
#Set the active toolbar using an integer index assigned to each toolbar in your activity.
self.toolbox.set_current_toolbar(1);
self.toolbox.set_current_toolbar(1);