Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian <icarito@sugarlabs.org>2011-03-09 04:32:59 (GMT)
committer Sebastian <icarito@sugarlabs.org>2011-03-09 04:32:59 (GMT)
commit2b3e685be1bea729733501879cfd0a1755d34ac0 (patch)
tree54b52721e7ad855024d7fe52a001abd4f2b34530
parentcbaf3adc5807709997d611097262bd7b6c321454 (diff)
UX improvement, move Keep to main bar
-rwxr-xr-xtypingturtle.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/typingturtle.py b/typingturtle.py
index 32dc813..b09f34c 100755
--- a/typingturtle.py
+++ b/typingturtle.py
@@ -101,7 +101,7 @@ class TypingTurtle(sugar.activity.activity.Activity):
def build_toolbox(self):
try:
from sugar.graphics.toolbarbox import ToolbarBox, ToolbarButton
- from sugar.activity.widgets import ActivityToolbarButton, StopButton
+ from sugar.activity.widgets import StopButton, KeepButton
from mybutton import MyActivityToolbarButton
toolbar_box = ToolbarBox()
@@ -121,6 +121,10 @@ class TypingTurtle(sugar.activity.activity.Activity):
toolbar_box.toolbar.insert(editorbtn, -2)
editorbtn.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)