mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
Merged revisions 66686 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r66686 | martin.v.loewis | 2008-09-30 00:09:07 +0200 (Di, 30 Sep 2008) | 5 lines Issue #3965: Allow repeated calls to turtle.Screen, by making it a true singleton object. Reviewed by Gregor Lingl. ........
This commit is contained in:
parent
28acc6cae5
commit
601149bb8e
4 changed files with 40 additions and 34 deletions
|
@ -96,8 +96,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()
|
||||
#####
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue