mirror of
https://github.com/python/cpython.git
synced 2025-09-17 06:06:25 +00:00
Issue #1119673: Do not override Tkinter.Text methods when creating a ScrolledText.
This commit is contained in:
parent
9132916efb
commit
d3e6e4bb8f
2 changed files with 7 additions and 1 deletions
|
@ -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':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue