Mouse event blocked in 1.0 but works with 0.93 ?

Hello,

My pyqt4 app use the matplotlib pick event.
Cliking on a point in the graph triggers an event
but with matplotlib 1.0 it does not work anymore
while it was working fine with 0.93.
(Matplotlib version is only what was changed)

Any one who might be aware of a matplotlib change that could have
induce that issue ?
Any idea/help on where I should look for and how to fix this?

Thanks in advance,

David

OK, was able to narrow thinks down:
actually it looks like
figure.canvas.mpl_connect('pick_event', function)
does not connect the "function" if it is a class method (...?)
In attachment you will find two files illustrating this:
buggy_pick.py and buggy_pick2.py
Both work nicely with matplotlib 0.93
With matplotlib 1.0 buggy_pick.py does not work while buggy_pick2.py does work.
The only difference is in the PickFig class...

Is it really a bug or I'm doing something wrong ?

Any workaround would be welcome.

Thx,

David

PS. Is it better to discuss this on users or devel list ?

Le 23/09/10 14:20, David Tr�mouilles a �crit :

buggy_pick.py (2.39 KB)

buggy_pick2.py (2.19 KB)

···

Hello,

My pyqt4 app use the matplotlib pick event.
Cliking on a point in the graph triggers an event
but with matplotlib 1.0 it does not work anymore
while it was working fine with 0.93.
(Matplotlib version is only what was changed)

Any one who might be aware of a matplotlib change that could have
induce that issue ?
Any idea/help on where I should look for and how to fix this?

Thanks in advance,

David