diff options
author | Marion <marion.zepf@gmail.com> | 2013-07-26 14:18:27 (GMT) |
---|---|---|
committer | Marion <marion.zepf@gmail.com> | 2013-07-26 14:18:27 (GMT) |
commit | 3c32b704333842d2df269daeb468cfcaa75f462a (patch) | |
tree | 395665e3b0f1ecd9e0cf74c796cb31f6e4fa4e65 /TurtleArt/tawindow.py | |
parent | a550de5d8b3041271e498fbffb2e2c018f56cfe8 (diff) | |
parent | fa7c9acf95db0761a9b7455eb972f20c4a2d5674 (diff) |
Merge branch 'master' of git://git.sugarlabs.org/turtleart/mainline
Diffstat (limited to 'TurtleArt/tawindow.py')
-rw-r--r-- | TurtleArt/tawindow.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/TurtleArt/tawindow.py b/TurtleArt/tawindow.py index 217a6e5..e20a1cf 100644 --- a/TurtleArt/tawindow.py +++ b/TurtleArt/tawindow.py @@ -4480,6 +4480,8 @@ before making changes to your Turtle Blocks program')) def _find_proto_name(self, name, label, palette='blocks'): ''' Look for a protoblock with this name ''' + if not self.interactive_mode: + return False if isinstance(name, unicode): name = name.encode('ascii', 'replace') if isinstance(label, unicode): @@ -4502,6 +4504,8 @@ before making changes to your Turtle Blocks program')) def _new_stack_block(self, name): ''' Add a stack block to the 'blocks' palette ''' + if not self.interactive_mode: + return if isinstance(name, (float, int)): return if isinstance(name, unicode): @@ -4529,6 +4533,8 @@ before making changes to your Turtle Blocks program')) def _new_box_block(self, name): ''' Add a box block to the 'blocks' palette ''' + if not self.interactive_mode: + return if isinstance(name, (float, int)): return if isinstance(name, unicode): @@ -4557,6 +4563,8 @@ before making changes to your Turtle Blocks program')) def _new_storein_block(self, name): ''' Add a storin block to the 'blocks' palette ''' + if not self.interactive_mode: + return if isinstance(name, (float, int)): return if isinstance(name, unicode): |