diff options
author | Walter Bender <walter.bender@gmail.com> | 2013-01-18 15:35:16 (GMT) |
---|---|---|
committer | Walter Bender <walter.bender@gmail.com> | 2013-01-18 15:35:16 (GMT) |
commit | 5a2511b8dd9a69871e8abbfd184f9acc3c433f3e (patch) | |
tree | 53bd771f9fbc19055745043f855002a969725331 /turtleblocks.py | |
parent | 89a08d318c16b11fd93322f2cf0414134e88c0b5 (diff) |
change behavior in stop of gnome menu
Diffstat (limited to 'turtleblocks.py')
-rwxr-xr-x | turtleblocks.py | 7 |
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() |