Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TurtleArt/tabasics.py
diff options
context:
space:
mode:
authorMarion <marion.zepf@gmail.com>2013-08-03 10:36:26 (GMT)
committer Marion <marion.zepf@gmail.com>2013-08-03 10:36:26 (GMT)
commit86693c65ae0d70471131c6cdfbefbcbf87411c55 (patch)
tree03e1fbd62cc8ee247e74201d44373c8dd852bb0f /TurtleArt/tabasics.py
parentf5835e8f91437af738bc983949cbd8997ef996a1 (diff)
add Primitive for the 'heading' value block
Diffstat (limited to 'TurtleArt/tabasics.py')
-rw-r--r--TurtleArt/tabasics.py5
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,