summaryrefslogtreecommitdiffstats
path: root/Demo
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2008-09-29 22:09:07 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2008-09-29 22:09:07 (GMT)
commite563aa4383df36cefe5c85c2a85b9008f54df048 (patch)
tree865ead147f288507d8963abce4a5f310c705cab5 /Demo
parente1448730716ee5c62d7290f8cfb4d94ad3f440df (diff)
downloadcpython-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.py4
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