Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pysamples
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 /pysamples
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 'pysamples')
-rw-r--r--pysamples/dotted_line.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pysamples/dotted_line.py b/pysamples/dotted_line.py
index c581f83..c0d3008 100644
--- a/pysamples/dotted_line.py
+++ b/pysamples/dotted_line.py
@@ -94,8 +94,8 @@
# fillscreen(self, c, s)
# tw.turtles.get_active_turtle().fillscreen(70, 90)
# Note: Fill the screen with color 70, shade 90 (light blue)
-# self.set_xy(self, (x, y))
-# tw.turtles.get_active_turtle().set_xy((100,100))
+# self.set_xy(self, x, y)
+# tw.turtles.get_active_turtle().set_xy(100,100)
# Note: Move the turtle to position (100, 100)
# self.get_xy tw.turtles.get_active_turtle().get_xy()[0]
# Note: The current x coordinate of the turtle