]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Update canvas before computing width. Draw turtle when done drawing circle.
authorMartin v. Löwis <martin@v.loewis.de>
Sun, 22 Sep 2002 13:02:10 +0000 (13:02 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Sun, 22 Sep 2002 13:02:10 +0000 (13:02 +0000)
Fixes #612595.

Lib/lib-tk/turtle.py

index 82dd759231a7072fce2a473e25d10841f4885222..1b418ebc82ff0c7976691ab2c2e6ce1a3567e2c1 100644 (file)
@@ -24,6 +24,7 @@ class RawPen:
 
     def reset(self):
         canvas = self._canvas
+        self._canvas.update()
         width = canvas.winfo_width()
         height = canvas.winfo_height()
         if width <= 1:
@@ -198,6 +199,7 @@ class RawPen:
         self._position = x1, y1
         if self._filling:
             self._path.append(self._position)
+        self._draw_turtle()
 
     def goto(self, *args):
         if len(args) == 1: