Sugar.activity.activity

From OLPC
Revision as of 14:35, 29 May 2008 by 155.212.201.242 (talk) (New page: The sugar.activity.activity package includes several important classes that are needed to run a basic activity. <h1>Class: Activity</h1> <h3> How do I create a new activity that is deriv...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The sugar.activity.activity package includes several important classes that are needed to run a basic activity.

Class: Activity

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

from sugar.activity import activity ... class ToolbarExample(activity.Activity):

   def __init__(self, handle):
       activity.Activity.__init__(self, handle)