Changes
Jump to navigation
Jump to search
Line 27:
Line 27:
+
+
+
+
+
+
+
Development Team/Almanac/sugar.activity.activity (view source)
Revision as of 10:07, 2 June 2008
, 10:07, 2 June 2008no edit summary
self.set_toolbox(toolbox)
self.set_toolbox(toolbox)
toolbox.show()
toolbox.show()
=== How do I set which toolbar is active when my activity starts up? ===
The "set_current_toolbar()" method in the ToolBox class allows you to programmatically set which toolbar is active. Using this, you can include code in your __init__() method to ensure that a particular toolbar is selected upon startup.
#Set the active toolbar using an integer index assigned to each toolbar in your activity.
self.toolbox.set_current_toolbar(1);
== Class: EditToolbar ==
== Class: EditToolbar ==