diff options
author | Marion <marion.zepf@gmail.com> | 2013-08-03 10:36:26 (GMT) |
---|---|---|
committer | Marion <marion.zepf@gmail.com> | 2013-08-03 10:36:26 (GMT) |
commit | 86693c65ae0d70471131c6cdfbefbcbf87411c55 (patch) | |
tree | 03e1fbd62cc8ee247e74201d44373c8dd852bb0f /TurtleArt/tabasics.py | |
parent | f5835e8f91437af738bc983949cbd8997ef996a1 (diff) |
add Primitive for the 'heading' value block
Diffstat (limited to 'TurtleArt/tabasics.py')
-rw-r--r-- | TurtleArt/tabasics.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/TurtleArt/tabasics.py b/TurtleArt/tabasics.py index 14c658a..b3e2cdd 100644 --- a/TurtleArt/tabasics.py +++ b/TurtleArt/tabasics.py @@ -293,10 +293,7 @@ turtle (can be used in place of a number block)'), value_block=True, prim_name='heading', logo_command='heading') - self.tw.lc.def_prim( - 'heading', - 0, - lambda self: self.tw.turtles.get_active_turtle().get_heading()) + self.tw.lc.def_prim('heading', 0, Primitive(Turtle.get_heading)) palette.add_block('turtle-label', hidden=True, |