Changes

Jump to navigation Jump to search
no edit summary
Line 13: Line 13:  
         activity.Activity.__init__(self, handle)
 
         activity.Activity.__init__(self, handle)
   −
= Class: ActivityToolbar, ActivityToolbox =
+
= Class: ActivityToolbox =
   −
=== What is the standard toolbar needed in most activities and how do I create it? ===
+
=== What is the standard toolbox needed in most activities and how do I create it? ===
The Activity toolbar with the Journal entry title, sharing, Keep and Stop buttons is the most basic toolbar. All activities should have this toolbar. It is easiest to add it to your Activity by using the ActivityToolbox.
+
The ActivityToolbox is the standard toolbox that should be a part of any sugar activity. This toolbox starts out with an ActivityToolbar, which contains standard controls for saving to the journal, closing the activity and other basic activity tasks.  
   −
(this code would go in your Activity's __init__ method):
+
To create a standard ActivityToolbox for your activity, place the following code in your activity's __init__ method:
    
         #### CREATE TOOLBOX
 
         #### CREATE TOOLBOX
Anonymous user

Navigation menu