Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tawindow.py
diff options
context:
space:
mode:
authorWalter Bender <walter@walter-laptop.(none)>2010-02-22 20:55:54 (GMT)
committer Walter Bender <walter@walter-laptop.(none)>2010-02-22 20:55:54 (GMT)
commit0e8395eace67c8aaee93d0c04711a371821abb6e (patch)
tree627c46f65be627949b7cdeabe63cb88c71936428 /tawindow.py
parent728d389f896c128cb5db77262b8779ab84743ea5 (diff)
fixed variable no. of args for Python function
Diffstat (limited to 'tawindow.py')
-rw-r--r--tawindow.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tawindow.py b/tawindow.py
index 77ab244..d0115cf 100644
--- a/tawindow.py
+++ b/tawindow.py
@@ -1401,9 +1401,11 @@ class TurtleArtWindow():
if blk.name == 'myfunc2' and n == 4:
blk.spr.labels[1] = 'f(x,y)'
blk.spr.labels[2] = ' '
+ blk.primitive = 'myfunction2'
if blk.name == 'myfunc2' and n == 5:
blk.spr.labels[1] = 'f(x,y,z)'
dy = blk.add_arg(False)
+ blk.primitive = 'myfunction3'
else:
dy = blk.add_arg()
for b in group: