Development Team/Almanac/sugar.activity.activity: Difference between revisions

No edit summary
No edit summary
Line 1: Line 1:
The sugar.activity.activity package includes several important classes that are needed to run a basic activity.  
The sugar.activity.activity package includes several important classes that are needed to run a basic activity.  


== Class: Activity ==
= Class: Activity =
=== How do I create a new activity that is derived from the base Activity class? ===
=== How do I create a new activity that is derived from the base Activity class? ===


Line 13: Line 13:
         activity.Activity.__init__(self, handle)
         activity.Activity.__init__(self, handle)


== Class: ActivityToolbar, ActivityToolbox ==
= Class: ActivityToolbar, ActivityToolbox =


=== What is the standard toolbar needed in most activities and how do I create it? ===
=== What is the standard toolbar needed in most activities and how do I create it? ===
Line 35: Line 35:




== Class: EditToolbar ==
= Class: EditToolbar =


=== How do I add a standard edit toolbar to my activity? ===
=== How do I add a standard edit toolbar to my activity? ===