Only setup canvas when it is first created.

Fixes #1514703
This commit is contained in:
Martin v. Löwis 2006-07-03 09:44:00 +00:00
parent 16a3932774
commit bd39c03c9f
2 changed files with 4 additions and 1 deletions

View File

@ -679,7 +679,7 @@ class Pen(RawPen):
_canvas = Tkinter.Canvas(_root, background="white")
_canvas.pack(expand=1, fill="both")
setup(width=_width, height= _height, startx=_startx, starty=_starty)
setup(width=_width, height= _height, startx=_startx, starty=_starty)
RawPen.__init__(self, _canvas)

View File

@ -19,6 +19,9 @@ Core and builtins
Library
-------
- Bug #1514703: Only setup canvas window in turtle when the canvas
is created.
- Bug #1513223: .close() of a _socketobj now releases the underlying
socket again, which then gets closed as it becomes unreferenced.