Can't override event handler in class derived from ItemSimple
Bug #85588 reported by
Dominique Würtz
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pygoocanvas |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I'm currently working on a custom goocanvas.
class MyItem(
def do_update(...):
...
...
def do_button_
print "Hello!"
The problem is that my overridden do_button_
called. I tried modifying the class declaration like this
class MyItem(
...
but then the do_update() of SimpleItem gets replaced by the one of
goocanvas.Item. Changing the order of the two base classes in the
declaration results in some method resolution conflict.
Changed in pygoocanvas: | |
status: | Unconfirmed → Rejected |
To post a comment you must log in.
Here is a python script which demonstrates the problem.