]> granicus.if.org Git - python/commitdiff
Only setup canvas when it is first created.
authorMartin v. Löwis <martin@v.loewis.de>
Mon, 3 Jul 2006 09:44:00 +0000 (09:44 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Mon, 3 Jul 2006 09:44:00 +0000 (09:44 +0000)
Fixes #1514703

Lib/lib-tk/turtle.py
Misc/NEWS

index 0fe83a3df8e1ab3519e8ffd2b2f863650e75b2d8..b5bad592ab5a9d2431e9cc3fd33c1890d78c7c96 100644 (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)
 
index a6b4c2e0375d431f1b9dc25bf4a540eade7fc509..63e4b75e190b1d7349a832d2fb9430b54e3be7d1 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -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.