Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 22d297b

Browse files
committed
Merged revisions 67279 via svnmerge from
svn+ssh://[email protected]/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__ ........
1 parent d6695ee commit 22d297b

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

Lib/turtle.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ class ScrolledCanvas(TK.Frame):
357357
def __init__(self, master, width=500, height=350,
358358
canvwidth=600, canvheight=500):
359359
TK.Frame.__init__(self, master, width=width, height=height)
360-
self._root = self.winfo_toplevel()
360+
self._rootwindow = self.winfo_toplevel()
361361
self.width, self.height = width, height
362362
self.canvwidth, self.canvheight = canvwidth, canvheight
363363
self.bg = "white"
@@ -377,7 +377,7 @@ def __init__(self, master, width=500, height=350,
377377
self.hscroll.grid(padx=1, in_ = self, pady=1, row=1,
378378
column=0, rowspan=1, columnspan=1, sticky='news')
379379
self.reset()
380-
self._root.bind('<Configure>', self.onResize)
380+
self._rootwindow.bind('<Configure>', self.onResize)
381381

382382
def reset(self, canvwidth=None, canvheight=None, bg = None):
383383
"""Ajust canvas and scrollbars according to given canvas size."""

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ Core and Builtins
3333
Library
3434
-------
3535

36+
- Issue #4116: Resolve member name conflict in ScrolledCanvas.__init__.
37+
3638
- Issue #4307: The named tuple that ``inspect.getfullargspec()`` returns now
3739
uses ``kwonlydefaults`` instead of ``kwdefaults``.
3840

0 commit comments

Comments
 (0)