diff options
author | Marion <marion.zepf@gmail.com> | 2013-08-09 13:09:38 (GMT) |
---|---|---|
committer | Marion <marion.zepf@gmail.com> | 2013-08-09 13:09:38 (GMT) |
commit | bb0616f00b89111ceabf79d1a3029d33ed5a47d6 (patch) | |
tree | 0f2a93b1c7d6421ebb9f898974c1e064429055a0 /TurtleArt/tabasics.py | |
parent | 0eef2cd93a3442d418eb7d5b66a9372313a46252 (diff) |
add Primitive for the 'hspace' (deprecated) and 'vspace' blocks
Diffstat (limited to 'TurtleArt/tabasics.py')
-rw-r--r-- | TurtleArt/tabasics.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/TurtleArt/tabasics.py b/TurtleArt/tabasics.py index c7dbf41..e7ba2ff 100644 --- a/TurtleArt/tabasics.py +++ b/TurtleArt/tabasics.py @@ -880,7 +880,8 @@ boolean operators from Numbers palette')) prim_name='nop', special_name=_('horizontal space'), help_string=_('jogs stack right')) - self.tw.lc.def_prim('nop', 0, lambda self: None) + self.tw.lc.def_prim('nop', 0, + Primitive(Primitive.do_nothing, export_me=False)) palette.add_block('vspace', style='basic-style-extended-vertical', @@ -888,7 +889,8 @@ boolean operators from Numbers palette')) prim_name='nop', special_name=_('vertical space'), help_string=_('jogs stack down')) - self.tw.lc.def_prim('nop', 0, lambda self: None) + self.tw.lc.def_prim('nop', 0, + Primitive(Primitive.do_nothing, export_me=False)) primitive_dictionary['stopstack'] = self._prim_stopstack palette.add_block('stopstack', |