commit | bd39c03c9faabcad9d6966c7e1a282e38823f456 | [log] [tgz] |
---|---|---|
author | Martin v. Löwis <martin@v.loewis.de> | Mon Jul 03 09:44:00 2006 +0000 |
committer | Martin v. Löwis <martin@v.loewis.de> | Mon Jul 03 09:44:00 2006 +0000 |
tree | d1b669aba54b696e2f4766ac008b4b578afbbc8e | |
parent | 16a393277410f38d9fa4a67d86433f1e3641f142 [diff] [blame] |
Only setup canvas when it is first created. Fixes #1514703
diff --git a/Lib/lib-tk/turtle.py b/Lib/lib-tk/turtle.py index 0fe83a3..b5bad59 100644 --- a/Lib/lib-tk/turtle.py +++ b/Lib/lib-tk/turtle.py
@@ -679,7 +679,7 @@ _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)