diff options
author | Marion <marion.zepf@gmail.com> | 2013-08-07 11:42:46 (GMT) |
---|---|---|
committer | Marion <marion.zepf@gmail.com> | 2013-08-07 11:42:46 (GMT) |
commit | a1bd88c60ce38e1b2bbf9c4814e6164a71709ae6 (patch) | |
tree | 820175dc61b5b9b48fe47d8af204824cdcd3a732 /TurtleArt/tabasics.py | |
parent | 5fc1c13ca41bbb1832b4257d9e9b032b3abd287d (diff) |
add a Primitive for the 'not' block
Diffstat (limited to 'TurtleArt/tabasics.py')
-rw-r--r-- | TurtleArt/tabasics.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/TurtleArt/tabasics.py b/TurtleArt/tabasics.py index 995481e..135b757 100644 --- a/TurtleArt/tabasics.py +++ b/TurtleArt/tabasics.py @@ -770,7 +770,7 @@ operators')) prim_name='not', logo_command='not', help_string=_('logical NOT operator')) - self.tw.lc.def_prim('not', 1, lambda self, x: not x) + self.tw.lc.def_prim('not', 1, Primitive(Primitive.not_)) primitive_dictionary['and'] = self._prim_and palette.add_block('and2', |