Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TurtleArt
diff options
context:
space:
mode:
authorWalter Bender <walter.bender@gmail.com>2012-05-01 15:17:06 (GMT)
committer Walter Bender <walter.bender@gmail.com>2012-05-01 15:17:06 (GMT)
commit2f140acee14115c5d6eb04ec86857053f3327ff9 (patch)
tree256d69a1a64bd4f8bba4bbb34439fab059702676 /TurtleArt
parent751b1b711747769a92776db974d02bade3fb32bc (diff)
replace stop button with show-block button after run completes
Diffstat (limited to 'TurtleArt')
-rw-r--r--TurtleArt/talogo.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/TurtleArt/talogo.py b/TurtleArt/talogo.py
index f6cc586..5bf202d 100644
--- a/TurtleArt/talogo.py
+++ b/TurtleArt/talogo.py
@@ -343,13 +343,19 @@ class LogoCode:
""" Step through the list. """
if self.tw.running_sugar:
self.tw.activity.stop_turtle_button.set_icon("stopiton")
+ self.tw.activity.stop_turtle_button.set_tooltip(
+ _('Stop turtle'))
elif self.tw.interactive_mode:
self.tw.toolbar_shapes['stopiton'].set_layer(TAB_LAYER)
self.running = True
self.icall(self.evline, blklist)
yield True
if self.tw.running_sugar:
- self.tw.activity.stop_turtle_button.set_icon("stopitoff")
+ # self.tw.activity.stop_turtle_button.set_icon("stopitoff")
+ if self.tw.step_time == 0:
+ self.tw.activity.stop_turtle_button.set_icon("hideshowoff")
+ self.tw.activity.stop_turtle_button.set_tooltip(
+ _('Show blocks'))
elif self.tw.interactive_mode:
self.tw.toolbar_shapes['stopiton'].hide()
yield False