>
> Can you update, repatch wx to use it (and Darren qt)?
>
I attached a patch that emits a enter_notify_event if the mouse enters the
figure. Now the example behaves correctly.
Gregor
Index: backend_wx.py
===================================================================
--- backend_wx.py (Revision 6482)
+++ backend_wx.py (Arbeitskopie)
@@ -743,6 +743,7 @@
bind(self, wx.EVT_LEFT_UP, self._onLeftButtonUp)
bind(self, wx.EVT_MOTION, self._onMotion)
bind(self, wx.EVT_LEAVE_WINDOW, self._onLeave)
+ bind(self, wx.EVT_ENTER_WINDOW, self._onEnter)
bind(self, wx.EVT_IDLE, self._onIdle)
self.SetBackgroundStyle(wx.BG_STYLE_CUSTOM)
@@ -1268,7 +1269,11 @@
evt.Skip()
FigureCanvasBase.leave_notify_event(self, guiEvent = evt)
+ def _onEnter(self, evt):
+ """Mouse has entered the window."""
+ FigureCanvasBase.enter_notify_event(self, guiEvent = evt)
+
########################################################################
#
# The following functions and classes are for pylab compatibility
-------------------------------------------------------------------------
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