From: Jorge S. <jor...@ya...> - 2009-11-28 19:45:21
|
Hi, I was trying to find out when a button_press_event happened inside a patch (tried Circle and Rectangle) using the contains(mouseevent) method, but it always seem to return True. I got the inspiration from the looking_glass.py example, which also doesn't work as (Ithink) it should. I know Ican do this the hard way, i.e. checking with event.xdata event.ydata, but I was really happy there was already a pre-defined method for doing so. Cheers, Jorge |