diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2008-11-19 09:11:49 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2008-11-19 09:11:49 (GMT) |
commit | fc1e0efa799c8ae58b2e8dc3a0c8ddf3c356ad09 (patch) | |
tree | 3eadcfa0c0dc56a0d4bef757f4e1670ca104ad4e /Lib/lib-tk | |
parent | 83be3d268d0a109eff6bbdd9b453edcac6c6c33f (diff) | |
download | cpython-fc1e0efa799c8ae58b2e8dc3a0c8ddf3c356ad09.zip cpython-fc1e0efa799c8ae58b2e8dc3a0c8ddf3c356ad09.tar.gz cpython-fc1e0efa799c8ae58b2e8dc3a0c8ddf3c356ad09.tar.bz2 |
Merged revisions 67279 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r67279 | martin.v.loewis | 2008-11-19 10:09:41 +0100 (Mi, 19 Nov 2008) | 2 lines
Issue #4116: Resolve member name conflict in ScrolledCanvas.__init__
........
Diffstat (limited to 'Lib/lib-tk')
-rw-r--r-- | Lib/lib-tk/turtle.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/lib-tk/turtle.py b/Lib/lib-tk/turtle.py index 001b210..9298c10 100644 --- a/Lib/lib-tk/turtle.py +++ b/Lib/lib-tk/turtle.py @@ -359,7 +359,7 @@ class ScrolledCanvas(TK.Frame): def __init__(self, master, width=500, height=350, canvwidth=600, canvheight=500): TK.Frame.__init__(self, master, width=width, height=height) - self._root = self.winfo_toplevel() + self._rootwindow = self.winfo_toplevel() self.width, self.height = width, height self.canvwidth, self.canvheight = canvwidth, canvheight self.bg = "white" @@ -379,7 +379,7 @@ class ScrolledCanvas(TK.Frame): self.hscroll.grid(padx=1, in_ = self, pady=1, row=1, column=0, rowspan=1, columnspan=1, sticky='news') self.reset() - self._root.bind('<Configure>', self.onResize) + self._rootwindow.bind('<Configure>', self.onResize) def reset(self, canvwidth=None, canvheight=None, bg = None): """Ajust canvas and scrollbars according to given canvas size.""" |