diff options
author | Marion <marion.zepf@gmail.com> | 2013-08-07 11:31:43 (GMT) |
---|---|---|
committer | Marion <marion.zepf@gmail.com> | 2013-08-07 11:31:43 (GMT) |
commit | 5fc1c13ca41bbb1832b4257d9e9b032b3abd287d (patch) | |
tree | 5baa433ae3e85f5f4291034f0c185f61fcc3df9a /TurtleArt/tabasics.py | |
parent | d7da80ca0f67617d5c305aed1ef66e12e4d43e69 (diff) |
add Primitives for the 'pen state', 'while', and 'until' blocks
- The Primitives for the 'while' and 'until' blocks are only used to export
the blocks, not for running them.
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 0181109..995481e 100644 --- a/TurtleArt/tabasics.py +++ b/TurtleArt/tabasics.py @@ -464,7 +464,7 @@ used in place of a number block)'), self.tw.lc.def_prim( 'penstate', 0, - lambda self: self.tw.turtles.get_active_turtle().get_pen_state()) + Primitive(Turtle.get_pen_state)) palette.add_block('setpensize', style='basic-style-1arg', |