diff options
author | Marion <marion.zepf@gmail.com> | 2013-08-27 12:51:05 (GMT) |
---|---|---|
committer | Marion <marion.zepf@gmail.com> | 2013-08-27 12:51:05 (GMT) |
commit | 75b09fa3329de3e2b9a856ba0263ce74d6b28f3f (patch) | |
tree | e66bb909cd613a1148e8ba67a17142df0ce4df32 /TurtleArt/tabasics.py | |
parent | dbc9daecdc6894fe62c23a86aaa91a9513742c13 (diff) |
change interface of Turtle.set_xy to set_xy(x, y, share, pendown)
- Used to be set_xy(pos, share, pendown) with pos = (x, y).
- Some calls to set_xy were already assuming the new interface.
- Also fix the 'bullet list' block from the 'presentations' palette. (Small,
related bug.)
Diffstat (limited to 'TurtleArt/tabasics.py')
-rw-r--r-- | TurtleArt/tabasics.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/TurtleArt/tabasics.py b/TurtleArt/tabasics.py index 0346d0e..beccd2a 100644 --- a/TurtleArt/tabasics.py +++ b/TurtleArt/tabasics.py @@ -217,7 +217,7 @@ degrees)')) 'setxy2', 2, lambda self, x, y: primitive_dictionary['move']( - self.tw.turtles.get_active_turtle().set_xy, (x, y))) + self.tw.turtles.get_active_turtle().set_xy, x, y)) define_logo_function('tasetxy', 'to tasetxy :x :y\nsetxy :x :y\nend\n') primitive_dictionary['set'] = self._prim_set @@ -295,7 +295,7 @@ turtle (can be used in place of a number block)'), 'setxy', 2, lambda self, x, y: primitive_dictionary['move']( - self.tw.turtles.get_active_turtle().set_xy, (x, y), + self.tw.turtles.get_active_turtle().set_xy, x, y, pendown=False)) define_logo_function('tasetxypenup', 'to tasetxypenup :x :y\npenup\n\ setxy :x :y\npendown\nend\n') |