Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TurtleArt/tawindow.py
diff options
context:
space:
mode:
authorMarion <marion.zepf@gmail.com>2013-08-27 12:51:05 (GMT)
committer Marion <marion.zepf@gmail.com>2013-08-27 12:51:05 (GMT)
commit75b09fa3329de3e2b9a856ba0263ce74d6b28f3f (patch)
treee66bb909cd613a1148e8ba67a17142df0ce4df32 /TurtleArt/tawindow.py
parentdbc9daecdc6894fe62c23a86aaa91a9513742c13 (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/tawindow.py')
-rw-r--r--TurtleArt/tawindow.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/TurtleArt/tawindow.py b/TurtleArt/tawindow.py
index e20a1cf..a791919 100644
--- a/TurtleArt/tawindow.py
+++ b/TurtleArt/tawindow.py
@@ -2511,10 +2511,10 @@ before making changes to your Turtle Blocks program'))
pos = self.turtles.screen_to_turtle_coordinates((dx, dy))
if self.selected_turtle.get_pen_state():
self.selected_turtle.set_pen_state(False)
- self.selected_turtle.set_xy(pos, share=False)
+ self.selected_turtle.set_xy(*pos, share=False)
self.selected_turtle.set_pen_state(True)
else:
- self.selected_turtle.set_xy(pos, share=False)
+ self.selected_turtle.set_xy(*pos, share=False)
if self.update_counter % 5:
self.lc.update_label_value(
'xcor', self.selected_turtle.get_xy()[0] /