Development Team/Almanac/sugar.activity.activity: Difference between revisions
No edit summary |
|||
| Line 13: | Line 13: | ||
activity.Activity.__init__(self, handle) | activity.Activity.__init__(self, handle) | ||
= Class: | = Class: ActivityToolbox = | ||
=== What is the standard | === What is the standard toolbox needed in most activities and how do I create it? === | ||
The | 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. | ||
To create a standard ActivityToolbox for your activity, place the following code in your activity's __init__ method: | |||
#### CREATE TOOLBOX | #### CREATE TOOLBOX | ||