Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TurtleArt
diff options
context:
space:
mode:
authorMarion <marion.zepf@gmail.com>2013-08-03 10:15:26 (GMT)
committer Marion <marion.zepf@gmail.com>2013-08-03 10:15:26 (GMT)
commit77ad91fd317647e2c271a82f7b979c8a73018b66 (patch)
treec2af17cc71d322748bb1528e33578b08e71e6a1d /TurtleArt
parentdfae915266a00fb6146cbdf0e0cd665fee95ae52 (diff)
add Primitive for the 'set color' block
Diffstat (limited to 'TurtleArt')
-rw-r--r--TurtleArt/tabasics.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/TurtleArt/tabasics.py b/TurtleArt/tabasics.py
index 932b478..e07f73c 100644
--- a/TurtleArt/tabasics.py
+++ b/TurtleArt/tabasics.py
@@ -254,9 +254,8 @@ towards the top of the screen.)'))
'seth',
1,
Primitive(Turtle.set_heading,
- slot_wrappers={0: Primitive(float, export_me=False)},
- call_afterwards=lambda value: self.after_set('heading',
- value)))
+ slot_wrappers={0: Primitive(float, export_me=False)},
+ call_afterwards=lambda value: self.after_set('heading',value)))
palette.add_block('xcor',
style='box-style',
@@ -373,8 +372,8 @@ turtle'))
self.tw.lc.def_prim(
'setcolor',
1,
- lambda self, x: primitive_dictionary['set'](
- 'color', self.tw.turtles.get_active_turtle().set_color, x))
+ Primitive(Turtle.set_color,
+ call_afterwards=lambda value: self.after_set('color', value)))
palette.add_block('setshade',
style='basic-style-1arg',