diff options
author | Walter Bender <walter.bender@gmail.com> | 2012-09-18 15:17:56 (GMT) |
---|---|---|
committer | Walter Bender <walter.bender@gmail.com> | 2012-09-18 15:17:56 (GMT) |
commit | 39c5f4696f37486823baef7b51dea5d2dd5c3aa6 (patch) | |
tree | 6603c79167745c2048e77d88dcb5ba29451ec649 | |
parent | 965d3ab28c5d337458cfef7e651f72e7586f12cd (diff) |
don't hide blocks when hitting stop button
-rw-r--r-- | TurtleArtActivity.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/TurtleArtActivity.py b/TurtleArtActivity.py index a039f4a..9f5f8cb 100644 --- a/TurtleArtActivity.py +++ b/TurtleArtActivity.py @@ -281,9 +281,8 @@ class TurtleArtActivity(activity.Activity): def do_stop_cb(self, button): ''' Callback for stop button. ''' - self.tw.stop_button() # Auto show blocks after stop - if not self.tw.hide: + if not self.tw.hide and not self.tw.running_blocks: self.tw.hideblocks() self.stop_turtle_button.set_icon('hideshowon') self.stop_turtle_button.set_tooltip(_('Show blocks')) @@ -291,6 +290,7 @@ class TurtleArtActivity(activity.Activity): self.tw.showblocks() self.stop_turtle_button.set_icon('hideshowoff') self.stop_turtle_button.set_tooltip(_('Hide blocks')) + self.tw.stop_button() self.tw.display_coordinates() def do_samples_cb(self, button): |