summaryrefslogtreecommitdiffstats
path: root/Lib/lib-tk
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2003-06-09 08:50:57 (GMT)
committerRaymond Hettinger <python@rcn.com>2003-06-09 08:50:57 (GMT)
commitaf81c2e887f185197be8073d7d95cf1ad5178330 (patch)
tree16da5aeadf8226b9188a676ebdce492eb9409c80 /Lib/lib-tk
parent1a44448b24cae0d99aa0556448442dae99604cd7 (diff)
downloadcpython-af81c2e887f185197be8073d7d95cf1ad5178330.zip
cpython-af81c2e887f185197be8073d7d95cf1ad5178330.tar.gz
cpython-af81c2e887f185197be8073d7d95cf1ad5178330.tar.bz2
SF bug #685773: 2 (more) bugs in turtle
The docs recommend filling by fill(1), drawing commands, fill(0). However, the filling did not actually take place until the next draw command. Fixed by issuing a null draw command at the end of the fill method.
Diffstat (limited to 'Lib/lib-tk')
-rw-r--r--Lib/lib-tk/turtle.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/lib-tk/turtle.py b/Lib/lib-tk/turtle.py
index e915ce9..b56d91c 100644
--- a/Lib/lib-tk/turtle.py
+++ b/Lib/lib-tk/turtle.py
@@ -149,6 +149,7 @@ class RawPen:
self._filling = flag
if flag:
self._path.append(self._position)
+ self.forward(0)
def circle(self, radius, extent=None):
if extent is None: