Re: [Matplotlib-users] Problem with event handling in matplotlib in tkinter

2014-11-07 Thread rouckas
Thanks for the tip. However, subclassing from object didn't help. -- View this message in context: http://matplotlib.1069221.n5.nabble.com/Problem-with-event-handling-in-matplotlib-in-tkinter-tp44302p44315.html Sent from the matplotlib - users mailing list archive at Nabble.com. --

Re: [Matplotlib-users] Problem with event handling in matplotlib in tkinter

2014-11-07 Thread rouckas
I have a little update on the issue: I tried it with different versions of python and matplotlib and it is still present in python 2.7.6 + matplotlib 1.4.2 but it works as expected in python 3.4.0 + matplotlib 1.4.2 Should this be reported as a bug in matplotlib 1.4.2 on python 2.7.6? BTW, I not

[Matplotlib-users] Problem with event handling in matplotlib in tkinter

2014-11-07 Thread rouckas
Dear all, I have a problem with using certain class methods as event handlers. In the following example: the method Test.on_press() is never executed. Only "clicked0" and "clicked1" is printed when I click on the canvas. When i use pure matplotlib widgets instead of tkinter embedding, the code