diff options
author | Walter Bender <walter.bender@gmail.com> | 2012-11-07 19:28:36 (GMT) |
---|---|---|
committer | Walter Bender <walter.bender@gmail.com> | 2012-11-07 19:28:36 (GMT) |
commit | 0b3653924f3b97011e5f3f72149fdd73cbffbb34 (patch) | |
tree | 1e5949ac3f221ce192154bc4c9537d956340ccd3 | |
parent | 5ecd20b95aa6ed473cd09c7a62dea2f1cdfbc628 (diff) |
always show stop button after stop
-rwxr-xr-x | turtleblocks.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/turtleblocks.py b/turtleblocks.py index 1b184ac..5c536a2 100755 --- a/turtleblocks.py +++ b/turtleblocks.py @@ -47,7 +47,8 @@ sys.argv[1:] = [] # Execution of import gst cannot see '--help' or '-h' import gettext -from TurtleArt.taconstants import OVERLAY_LAYER, DEFAULT_TURTLE_COLORS +from TurtleArt.taconstants import OVERLAY_LAYER, DEFAULT_TURTLE_COLORS, \ + TAB_LAYER from TurtleArt.tautils import data_to_string, data_from_string, get_save_name from TurtleArt.tawindow import TurtleArtWindow from TurtleArt.taexportlogo import save_logo @@ -553,6 +554,7 @@ class TurtleMain(): self.tw.lc.trace = 0 self.tw.hideblocks() self.tw.display_coordinates(clear=True) + self.tw.toolbar_shapes['stopiton'].set_layer(TAB_LAYER) self.tw.run_button(0, running_from_button_push=True) return @@ -574,6 +576,7 @@ class TurtleMain(): self.tw.hideblocks() else: self.tw.showblocks() + self.tw.toolbar_shapes['stopiton'].hide() self.tw.stop_button() self.tw.display_coordinates() |