diff options
Diffstat (limited to 'activity.py')
-rw-r--r-- | activity.py | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/activity.py b/activity.py index 7aee0ef..16ba628 100644 --- a/activity.py +++ b/activity.py @@ -18,6 +18,7 @@ class AToiDePocActivity(activity.Activity): def __init__(self, handle): # init parent activity.Activity.__init__(self, handle) + self.max_participants = 1 # get toolbox _toolbox = activity.ActivityToolbox(self) # add tool bars @@ -26,8 +27,24 @@ class AToiDePocActivity(activity.Activity): _toolbox.show() # init toolbars for _t in ['story', 'graphic', 'sound']: - ui.Toolbar(_toolbox, name=_t) + ui.Toolbar(self, name=_t) # set default tab _toolbox.set_current_toolbar(1) - # some logging - logger.debug('[activity] - started ...') + # DEBUG + logger.debug('[activity] init - started ...') + + def read_file(self, file_path): + '''Dummy overiding ... + ''' + # DEBUG + logger.debug('[activity] read_file - file_path: %s' % file_path) + + def write_file(self, file_path): + '''Dummy overiding ... + ''' + # DEBUG + logger.debug('[activity] write_file - file_path: %s' % file_path) + + def close(self, skip_save=False): + # DEBUG + activity.Activity.close(self, skip_save=True) |