[Python-checkins] python/dist/src/Lib/lib-tk turtle.py,1.10,1.11
rhettinger@users.sourceforge.net
rhettinger@users.sourceforge.net
2003年6月09日 01:51:00 -0700
Update of /cvsroot/python/python/dist/src/Lib/lib-tk
In directory sc8-pr-cvs1:/tmp/cvs-serv16716
Modified Files:
turtle.py
Log Message:
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.
Index: turtle.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/lib-tk/turtle.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** turtle.py 6 Apr 2003 09:00:58 -0000 1.10
--- turtle.py 9 Jun 2003 08:50:57 -0000 1.11
***************
*** 150,153 ****
--- 150,154 ----
if flag:
self._path.append(self._position)
+ self.forward(0)
def circle(self, radius, extent=None):