From: Martin v. Löwis Date: Sun, 22 Sep 2002 13:02:10 +0000 (+0000) Subject: Update canvas before computing width. Draw turtle when done drawing circle. X-Git-Tag: v2.2.2b1~167 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cda5f7bc3d615ae694bfe25731aa7be5173e7756;p=thirdparty%2FPython%2Fcpython.git Update canvas before computing width. Draw turtle when done drawing circle. Fixes #612595. --- diff --git a/Lib/lib-tk/turtle.py b/Lib/lib-tk/turtle.py index 82dd759231a7..1b418ebc82ff 100644 --- a/Lib/lib-tk/turtle.py +++ b/Lib/lib-tk/turtle.py @@ -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: