]> granicus.if.org Git - python/commitdiff
SF bug #685773: 2 (more) bugs in turtle
authorRaymond Hettinger <python@rcn.com>
Mon, 9 Jun 2003 08:50:57 +0000 (08:50 +0000)
committerRaymond Hettinger <python@rcn.com>
Mon, 9 Jun 2003 08:50:57 +0000 (08:50 +0000)
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.

Lib/lib-tk/turtle.py

index e915ce939ad0e7337c71524b190595d620046857..b56d91c83f0be9634eddc7871c5479a038722102 100644 (file)
@@ -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: