Development Team/Almanac/sugar.graphics.toolbox: Difference between revisions

 
(11 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{{Almanac}}
{{Almanac TOC}}
= Class: Toolbox([http://www.pygtk.org/docs/pygtk/ gtk.VBox]) =
= Class: Toolbox([http://www.pygtk.org/docs/pygtk/ gtk.VBox]) =


Line 24: Line 26:
         #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);
=== How do I remove the separator at the bottom of my toolbar? ===
In your activity subclass, do the following:
<pre>
self.toolbox = activity.ActivityToolbox(self)
self.set_toolbox(self.toolbox)
self.toolbox.remove(self.toolbox._separator)
</pre>