New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ScrolledText allows Frame.bbox to hide Text.bbox #41557
Comments
sys.version == '2.3.3a0 (#3, Jul 20 2004, 10:32:48) from ScrolledText import ScrolledText
s = ScrolledText()
s.pack() I wish to call bbox on the Text, but s.bbox is the if m[0] != '_' and m != 'config' and m !=
'configure':
setattr(self, m, getattr(self.frame, m)) For special situations (of which bbox is probably *not* |
Logged In: YES A workaround: s = ScrolledText()
new.instancemethod(Text.bbox,s,s.__class__)(...) but, I actually have a subclass of ScrolledText, and I can't class Foo(ScrolledText):
... def foo(self):
... ... new.instancemethod(tk.Text.bbox, self,
self.__class__)("insert") TypeError: unbound method bbox() must be called with Text |
bbox is already there, that is the problem. Including it again there One way to fix this is setting only the attributes that are not present |
This has been fixed on r74507 now. |
py3k branch: r74518. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: