Update Canvas before computing width. Draw turtle at end of drawing circle.

Fixes #612595. Will backport to 2.2.
This commit is contained in:
Martin v. Löwis 2002-09-22 13:00:26 +00:00
parent a6026c6a0f
commit 73b9b6679e
1 changed files with 2 additions and 0 deletions

View File

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