diff options
author | Walter Bender <walter@sugarlabs.org> | 2013-10-30 17:24:11 (GMT) |
---|---|---|
committer | Walter Bender <walter@sugarlabs.org> | 2013-10-30 17:24:11 (GMT) |
commit | 955cbca83a84b0c1ea06f8c33dfec8dd0f850ed1 (patch) | |
tree | b35c003c4250652885887bfa8e554ce84b2b8696 /pysamples/dotted_line.py | |
parent | 32444889db2d7573426b3e93722a566b36385bc3 (diff) |
comvert custom blocks to new prim style -- args is passed as a tuple
Diffstat (limited to 'pysamples/dotted_line.py')
-rw-r--r-- | pysamples/dotted_line.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pysamples/dotted_line.py b/pysamples/dotted_line.py index c0d3008..098e0a4 100644 --- a/pysamples/dotted_line.py +++ b/pysamples/dotted_line.py @@ -124,11 +124,11 @@ # of the numeric argument block docked to the Python block. -def myblock(tw, line_length): +def myblock(tw, args): ''' Draw a dotted line of length line_length. ''' try: # make sure line_length is a number - line_length = float(line_length) + line_length = float(args[0]) except ValueError: return if tw.turtles.get_active_turtle().get_pen_state(): |