Changes
Jump to navigation
Jump to search
Line 8:
Line 8:
− +
−
Development Team/Almanac/sugar.activity.activity (view source)
Revision as of 10:44, 29 May 2008
, 10:44, 29 May 2008→How do I create a new activity that is derived from the base Activity class?
from sugar.activity import activity
from sugar.activity import activity
...
...
class ToolbarExampleActivity(activity.Activity):
class ToolbarExample(activity.Activity):
def __init__(self, handle):
def __init__(self, handle):
activity.Activity.__init__(self, handle)
activity.Activity.__init__(self, handle)
== Class: ActivityToolbar, ActivityToolbox ==
== Class: ActivityToolbar, ActivityToolbox ==