diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2008-09-29 22:09:07 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2008-09-29 22:09:07 (GMT) |
commit | e563aa4383df36cefe5c85c2a85b9008f54df048 (patch) | |
tree | 865ead147f288507d8963abce4a5f310c705cab5 /Demo | |
parent | e1448730716ee5c62d7290f8cfb4d94ad3f440df (diff) | |
download | cpython-e563aa4383df36cefe5c85c2a85b9008f54df048.zip cpython-e563aa4383df36cefe5c85c2a85b9008f54df048.tar.gz cpython-e563aa4383df36cefe5c85c2a85b9008f54df048.tar.bz2 |
Issue #3965: Allow repeated calls to turtle.Screen, by making it a
true singleton object.
Reviewed by Gregor Lingl.
Diffstat (limited to 'Demo')
-rw-r--r-- | Demo/turtle/turtleDemo.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Demo/turtle/turtleDemo.py b/Demo/turtle/turtleDemo.py index 245eaa7..5e744ef 100644 --- a/Demo/turtle/turtleDemo.py +++ b/Demo/turtle/turtleDemo.py @@ -94,8 +94,8 @@ class DemoWindow(object): left_frame.pack(side=LEFT, fill=BOTH, expand=0) self.graph_frame = g_frame = Frame(root) - turtle.Screen._root = g_frame - turtle.Screen._canvas = turtle.ScrolledCanvas(g_frame, 800, 600, 1000, 800) + turtle._Screen._root = g_frame + turtle._Screen._canvas = turtle.ScrolledCanvas(g_frame, 800, 600, 1000, 800) #xturtle.Screen._canvas.pack(expand=1, fill="both") self.screen = _s_ = turtle.Screen() self.scanvas = _s_._canvas |