Message60651
Logged In: YES
user_id=127598
A workaround:
s = ScrolledText()
new.instancemethod(Text.bbox,s,s.__class__)(...)
but, I actually have a subclass of ScrolledText, and I can't
figure out how to use the workaround.
class Foo(ScrolledText):
... def foo(self):
... ... new.instancemethod(tk.Text.bbox, self,
self.__class__)("insert")
TypeError: unbound method bbox() must be called with Text
instance as first argument (got Foo instance instead)
|
|
Date |
User |
Action |
Args |
2008-01-20 09:57:29 | admin | link | issue1119673 messages |
2008-01-20 09:57:29 | admin | create | |
|