Revision: 6470 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6470&view=rev Author: dsdale Date: 2008-12-02 17:07:57 +0000 (Tue, 02 Dec 2008)
Log Message: ----------- Pass qt* enter and leave events to FigureCanvasBase Modified Paths: -------------- trunk/matplotlib/lib/matplotlib/backends/backend_qt.py trunk/matplotlib/lib/matplotlib/backends/backend_qt4.py Modified: trunk/matplotlib/lib/matplotlib/backends/backend_qt.py =================================================================== --- trunk/matplotlib/lib/matplotlib/backends/backend_qt.py 2008-12-02 15:52:39 UTC (rev 6469) +++ trunk/matplotlib/lib/matplotlib/backends/backend_qt.py 2008-12-02 17:07:57 UTC (rev 6470) @@ -102,6 +102,12 @@ w,h = self.get_width_height() self.resize( w, h ) + def enterEvent(self, event): + FigureCanvasBase.enter_notify_event(self, event) + + def leaveEvent(self, event): + FigureCanvasBase.leave_notify_event(self, event) + def mousePressEvent( self, event ): x = event.pos().x() # flipy so y=0 is bottom of canvas Modified: trunk/matplotlib/lib/matplotlib/backends/backend_qt4.py =================================================================== --- trunk/matplotlib/lib/matplotlib/backends/backend_qt4.py 2008-12-02 15:52:39 UTC (rev 6469) +++ trunk/matplotlib/lib/matplotlib/backends/backend_qt4.py 2008-12-02 17:07:57 UTC (rev 6470) @@ -105,8 +105,12 @@ def __timerEvent(self, event): # hide until we can test and fix self.mpl_idle_event(event) - + + def enterEvent(self, event): + FigureCanvasBase.enter_notify_event(self, event) + def leaveEvent(self, event): + print event FigureCanvasBase.leave_notify_event(self, event) def mousePressEvent( self, event ): This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------- 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-checkins mailing list Matplotlib-checkins@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins