From 63ea8f8170375392e04a7cf2bb3f6802cc8be59e Mon Sep 17 00:00:00 2001 From: Marion Date: Thu, 15 Aug 2013 19:10:01 +0000 Subject: don't re-define the 'box' and 'storein' primitives when a new box is created --- diff --git a/TurtleArt/tawindow.py b/TurtleArt/tawindow.py index ebdc3b2..c9b2eb0 100644 --- a/TurtleArt/tawindow.py +++ b/TurtleArt/tawindow.py @@ -4556,8 +4556,6 @@ before making changes to your Turtle Blocks program')) default=name, logo_command='box', help_string=_('named variable (numeric value)')) - self.lc.def_prim('box', 1, - lambda self, x: primitive_dictionary['box'](x)) # Regenerate the palette, which will now include the new block. self.show_toolbar_palette(palette_name_to_index('blocks'), @@ -4586,10 +4584,6 @@ before making changes to your Turtle Blocks program')) default=[name, 100], help_string=_('stores numeric value in named \ variable')) - self.lc.def_prim( - 'storeinbox', - 2, - lambda self, x, y: primitive_dictionary['setbox'](x, y)) # Regenerate the palette, which will now include the new block. self.show_toolbar_palette(palette_name_to_index('blocks'), -- cgit v0.9.1