From 39c5f4696f37486823baef7b51dea5d2dd5c3aa6 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Tue, 18 Sep 2012 15:17:56 +0000 Subject: don't hide blocks when hitting stop button --- 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): -- cgit v0.9.1