From: <jd...@us...> - 2008-12-03 18:38:07
|
Revision: 6484 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6484&view=rev Author: jdh2358 Date: 2008-12-03 18:38:03 +0000 (Wed, 03 Dec 2008) Log Message: ----------- committed Gregor's enter notify update for backend wx Modified Paths: -------------- trunk/matplotlib/lib/matplotlib/backends/backend_wx.py Modified: trunk/matplotlib/lib/matplotlib/backends/backend_wx.py =================================================================== --- trunk/matplotlib/lib/matplotlib/backends/backend_wx.py 2008-12-03 15:33:53 UTC (rev 6483) +++ trunk/matplotlib/lib/matplotlib/backends/backend_wx.py 2008-12-03 18:38:03 UTC (rev 6484) @@ -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 was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |