Kaydet (Commit) d3e6e4bb authored tarafından Guilherme Polo's avatar Guilherme Polo

Issue #1119673: Do not override Tkinter.Text methods when creating a ScrolledText.

üst 9132916e
......@@ -27,8 +27,11 @@ class ScrolledText(Text):
self.pack(side=LEFT, fill=BOTH, expand=True)
self.vbar['command'] = self.yview
# Copy geometry methods of self.frame -- hack!
# Copy geometry methods of self.frame without overriding Text
# methods -- hack!
text_meths = vars(Text).keys()
methods = vars(Pack).keys() + vars(Grid).keys() + vars(Place).keys()
methods = set(methods).difference(text_meths)
for m in methods:
if m[0] != '_' and m != 'config' and m != 'configure':
......
......@@ -359,6 +359,9 @@ Core and Builtins
Library
-------
- Issue #1119673: Do not override Tkinter.Text methods when creating a
ScrolledText.
- Issue #6665: Fix fnmatch to properly match filenames with newlines in them.
- Issue #1135: Add the XView and YView mix-ins to avoid duplicating
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment