John Hunter wrote:
> On Wed, Nov 26, 2008 at 10:59 AM, John Hunter <[EMAIL PROTECTED]> wrote:
>
>   
>> probably fairly easy using a class level attr in the MouseEvent.
>> Another possibility would be to add support for figure_enter_event,
>> figure_leave_event, axes_enter_event, axes_leave_event.  The user code
>> would have to separately process the axes_leave_event but this might
>> be the cleanest solution.  I am happy to add support for these ...
>>     
>
> I just committed axes/figure enter/leave event notifications, with
> example in examples/event_handling/figure_axes_enter_leave.py.  If you
> register for a leave event, you will get passed the last event that
> was in your axes/figure before it left
>
>
> Everything is working well with one caveat -- a figure leave event is
> only triggered when you enter a new figure, not simply when you leave
> the figure.  This is because I just used the existing mpl
> LocationEvents to support the new events, and none of these are
> created when you are not over a canvas.  To properly handle the figure
>  leave events, we will need to tap into the underlying GUI leave
> events.  The axes leave events work fine, with the one caveat that if
> the axes region is [0,0,1,1] you may not see the leave event for the
> same reason you do not see the figure leave event until you are over
> another canvas.
>
> JDH
>   
John,

thank you, I'll have to check out the repository to see how I can use 
the changes.

Just a thought: a figure_leave / figure_enter event could be triggered 
by comparing the currently held axis with event.inaxes (that's what 
Slider and my bar widget do in _update() ).

Cheers,
Egor

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to