Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Maze.activity/olpcgames/activity.py
diff options
context:
space:
mode:
authorSebastian <icarito@sugarlabs.org>2011-03-09 04:34:47 (GMT)
committer Sebastian <icarito@sugarlabs.org>2011-03-09 04:34:47 (GMT)
commitd9be1d6cd541a133c712a19fa57a0bc199270e4d (patch)
tree8ad9bfa972c3bd6ce10acafe27930738772ee3b1 /Maze.activity/olpcgames/activity.py
parent91383e59844e7e864a752395fd00e740def6f68b (diff)
UX improvement: move Share and Keep to main bar
Diffstat (limited to 'Maze.activity/olpcgames/activity.py')
-rw-r--r--Maze.activity/olpcgames/activity.py14
1 files changed, 12 insertions, 2 deletions
diff --git a/Maze.activity/olpcgames/activity.py b/Maze.activity/olpcgames/activity.py
index 98fbf4c..1b744f3 100644
--- a/Maze.activity/olpcgames/activity.py
+++ b/Maze.activity/olpcgames/activity.py
@@ -110,10 +110,12 @@ class PyGameActivity(activity.Activity):
try:
from sugar.graphics.toolbarbox import ToolbarBox, ToolbarButton
- from sugar.activity.widgets import ActivityToolbarButton, StopButton
+ from sugar.activity.widgets import ActivityToolbarButton, StopButton, \
+ ShareButton, KeepButton
+ from mybutton import MyActivityToolbarButton
toolbar_box = ToolbarBox()
- activity_button = ActivityToolbarButton(self)
+ activity_button = MyActivityToolbarButton(self)
toolbar_box.toolbar.insert(activity_button, 0)
activity_button.show()
@@ -123,6 +125,14 @@ class PyGameActivity(activity.Activity):
toolbar_box.toolbar.insert(separator, -1)
separator.show()
+ share_button = ShareButton(self)
+ toolbar_box.toolbar.insert(share_button, -1)
+ share_button.show()
+
+ keep_button = KeepButton(self)
+ toolbar_box.toolbar.insert(keep_button, -1)
+ keep_button.show()
+
stop_button = StopButton(self)
stop_button.props.accelerator = '<Ctrl><Shift>Q'
toolbar_box.toolbar.insert(stop_button, -1)