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 11:27:45 (GMT)
committer Marion <marion.zepf@gmail.com>2013-08-03 11:27:45 (GMT)
commit2126d89eb0bd8ccf8d4e6dd2c06493c0c3dacdcb (patch)
tree3cee5b0a1c050debbeca8c5982748d78b13df785 /TurtleArt/tabasics.py
parente9db4dfee7b8faec0728593229dc73be7c692c2f (diff)
add Primitives for the 'set pen size' block and the 'pen size' value block
Diffstat (limited to 'TurtleArt/tabasics.py')
-rw-r--r--TurtleArt/tabasics.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/TurtleArt/tabasics.py b/TurtleArt/tabasics.py
index 35462a5..fc1aadd 100644
--- a/TurtleArt/tabasics.py
+++ b/TurtleArt/tabasics.py
@@ -469,8 +469,8 @@ used in place of a number block)'),
turtle'))
self.tw.lc.def_prim(
'setpensize', 1,
- lambda self, x: primitive_dictionary['set']
- ('pensize', self.tw.turtles.get_active_turtle().set_pen_size, x))
+ Primitive(Turtle.set_pen_size,
+ call_afterwards=lambda val: self.after_set('pensize', val)))
define_logo_function('tasetpensize',
'to tasetpensize :a\nsetpensize round :a\nend\n')
@@ -507,7 +507,7 @@ in place of a number block)'),
self.tw.lc.def_prim(
'pensize',
0,
- lambda self: self.tw.turtles.get_active_turtle().get_pen_size())
+ Primitive(Turtle.get_pen_size))
define_logo_function('tapensize', 'to tapensize\noutput first round \
pensize\nend\n')