Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/turtleblocks.py
diff options
context:
space:
mode:
Diffstat (limited to 'turtleblocks.py')
-rwxr-xr-xturtleblocks.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/turtleblocks.py b/turtleblocks.py
index df8c436..71e1506 100755
--- a/turtleblocks.py
+++ b/turtleblocks.py
@@ -572,11 +572,10 @@ class TurtleMain():
def _do_stop_cb(self, widget):
''' Callback for stop button. '''
- if not self.tw.hide and not self.tw.running_blocks:
- self.tw.hideblocks()
- else:
- self.tw.showblocks()
+ if self.tw.running_blocks:
self.tw.toolbar_shapes['stopiton'].hide()
+ if self.tw.hide:
+ self.tw.showblocks()
self.tw.stop_button()
self.tw.display_coordinates()