diff options
author | Marion <marion.zepf@gmail.com> | 2013-07-23 09:01:44 (GMT) |
---|---|---|
committer | Marion <marion.zepf@gmail.com> | 2013-07-23 09:01:44 (GMT) |
commit | 1071c82c317933a3251fe0c0c5028afbb5615e73 (patch) | |
tree | 88d2cd2fec8da3c3296681e41faaec13f6ae7b1a /TurtleArt/tabasics.py | |
parent | 75271bb387a70a047b3258813d55e1e517c5bd44 (diff) |
define some Primitives as not exportable when they are created
Diffstat (limited to 'TurtleArt/tabasics.py')
-rw-r--r-- | TurtleArt/tabasics.py | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/TurtleArt/tabasics.py b/TurtleArt/tabasics.py index 7148605..12eeb7a 100644 --- a/TurtleArt/tabasics.py +++ b/TurtleArt/tabasics.py @@ -136,7 +136,8 @@ class Palettes(): 'forward', 1, Primitive(Turtle.forward, - slot_wrappers={0: Primitive(self.convert_value_for_move)}, + slot_wrappers={0: Primitive(self.convert_value_for_move, + export_me=False)}, call_afterwards=self.after_move)) palette.add_block('back', @@ -149,7 +150,8 @@ class Palettes(): self.tw.lc.def_prim('back', 1, Primitive(Turtle.forward, slot_wrappers={0: Primitive(float.__neg__, - slot_wrappers={0: Primitive(self.convert_value_for_move)})}, + slot_wrappers={0: Primitive(self.convert_value_for_move, + export_me=False)})}, call_afterwards=self.after_move)) primitive_dictionary['clean'] = self._prim_clear @@ -177,7 +179,8 @@ in degrees)')) 'left', 1, Primitive(Turtle.right, slot_wrappers={0: Primitive(float.__neg__, - slot_wrappers={0: Primitive(self.check_number)})}, + slot_wrappers={0: Primitive(self.check_number, + export_me=False)})}, call_afterwards=self.after_right)) palette.add_block('right', @@ -192,7 +195,8 @@ degrees)')) 'right', 1, Primitive(Turtle.right, - slot_wrappers={0: Primitive(self.check_number)}, + slot_wrappers={0: Primitive(self.check_number, + export_me=False)}, call_afterwards=self.after_right)) primitive_dictionary['arc'] = self._prim_arc @@ -224,8 +228,10 @@ degrees)')) 2, Primitive(Turtle.set_xy, slot_wrappers={(0, 2): Primitive(Primitive.make_tuple, - slot_wrappers={0: Primitive(self.convert_value_for_move), - 1: Primitive(self.convert_value_for_move)})}, + slot_wrappers={0: Primitive(self.convert_value_for_move, + export_me=False), + 1: Primitive(self.convert_value_for_move, + export_me=False)})}, call_afterwards=self.after_move)) define_logo_function('tasetxy', 'to tasetxy :x :y\nsetxy :x :y\nend\n') @@ -828,7 +834,8 @@ number of seconds')) Primitive(self.tw.lc.loop, slot_wrappers={0: Primitive(Primitive.controller_repeat, slot_wrappers={0: Primitive(self.tw.lc.int, - slot_wrappers={0: Primitive(self.check_number)})})}), + slot_wrappers={0: Primitive(self.check_number, + export_me=False)})})}), True) primitive_dictionary['if'] = self._prim_if @@ -906,7 +913,7 @@ boolean operators from Numbers palette')) help_string=_('connects action to toolbar run \ buttons')) self.tw.lc.def_prim('start', 0, - Primitive(self.tw.lc.prim_start)) + Primitive(self.tw.lc.prim_start, export_me=False)) palette.add_block('string', style='box-style', |