summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-09-22 13:00:26 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2002-09-22 13:00:26 (GMT)
commit73b9b6679e92e4f43cae6286a067976d03d24863 (patch)
treecaa5e542bd3bb9bc7febae08c160861335183863 /Lib
parenta6026c6a0ff6835fb2bdd0c904cb4be8b4b5c19f (diff)
downloadcpython-73b9b6679e92e4f43cae6286a067976d03d24863.zip
cpython-73b9b6679e92e4f43cae6286a067976d03d24863.tar.gz
cpython-73b9b6679e92e4f43cae6286a067976d03d24863.tar.bz2
Update Canvas before computing width. Draw turtle at end of drawing circle.
Fixes #612595. Will backport to 2.2.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/lib-tk/turtle.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/lib-tk/turtle.py b/Lib/lib-tk/turtle.py
index 82dd759..1b418eb 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: