[Python-checkins] python/dist/src/Lib/lib-tk turtle.py,1.6,1.7
loewis@users.sourceforge.net
loewis@users.sourceforge.net
Sun, 22 Sep 2002 06:00:28 -0700
Update of /cvsroot/python/python/dist/src/Lib/lib-tk
In directory usw-pr-cvs1:/tmp/cvs-serv2162
Modified Files:
turtle.py
Log Message:
Update Canvas before computing width. Draw turtle at end of drawing circle.
Fixes #612595. Will backport to 2.2.
Index: turtle.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/lib-tk/turtle.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** turtle.py 28 Mar 2002 15:45:57 -0000 1.6
--- turtle.py 22 Sep 2002 13:00:26 -0000 1.7
***************
*** 25,28 ****
--- 25,29 ----
def reset(self):
canvas = self._canvas
+ self._canvas.update()
width = canvas.winfo_width()
height = canvas.winfo_height()
***************
*** 199,202 ****
--- 200,204 ----
if self._filling:
self._path.append(self._position)
+ self._draw_turtle()
def goto(self, *args):