[Python-checkins] python/dist/src/Lib/lib-tk turtle.py,1.5.16.1,1.5.16.2
loewis@users.sourceforge.net
loewis@users.sourceforge.net
Sun, 22 Sep 2002 06:02:12 -0700
Update of /cvsroot/python/python/dist/src/Lib/lib-tk
In directory usw-pr-cvs1:/tmp/cvs-serv2971
Modified Files:
Tag: release22-maint
turtle.py
Log Message:
Update canvas before computing width. Draw turtle when done drawing circle.
Fixes #612595.
Index: turtle.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/lib-tk/turtle.py,v
retrieving revision 1.5.16.1
retrieving revision 1.5.16.2
diff -C2 -d -r1.5.16.1 -r1.5.16.2
*** turtle.py 5 Apr 2002 15:28:31 -0000 1.5.16.1
--- turtle.py 22 Sep 2002 13:02:10 -0000 1.5.16.2
***************
*** 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):