diff options
author | Agustin Zubiaga <aguz@sugarlabs.org> | 2013-11-25 18:59:48 (GMT) |
---|---|---|
committer | Agustin Zubiaga <aguz@sugarlabs.org> | 2013-11-25 18:59:48 (GMT) |
commit | 309dcb1dc3d00ca41204531dba28d78e2df466f1 (patch) | |
tree | 8a54c2a398bd3fa5910d28c56603ed662f4de883 | |
parent | c1a313335bd25ae30155d69081bfea3686c28776 (diff) |
Fixing docstrings
Signed-off-by: Agustin Zubiaga <aguz@sugarlabs.org>
-rw-r--r-- | simpleactivity.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/simpleactivity.py b/simpleactivity.py index 11a4bf1..e9d9cae 100644 --- a/simpleactivity.py +++ b/simpleactivity.py @@ -44,17 +44,16 @@ class SimpleActivity(activity.Activity): This will create the Toolbar automatically with the ActivityToolbarButton or will put all the Activity Buttons in the toolbarbox if you set activitytoolbarbutton (__init__ parameter) - to False. + to False, and also it will put the StopButton at the end of the + toolbar, if you add something don't worry, it will be moved + automatically. And you can add buttons to the main in a simple way just using the add_toolbutton method. - Every "add-method" support the index parameter: + Every "add_to method" support the index parameter: self.add_toolbutton(..., index=2) - And when you finish building you toolbar just call: - self.add_stop_button() - There is a reserved variable (self.data) where you can save something and when the activity gets closed, it is auto-saved to the jorunal. And then when the activity runs again, self.data will contain what was |