From: <md...@us...> - 2010-10-22 15:01:44
|
Revision: 8759 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8759&view=rev Author: mdboom Date: 2010-10-22 15:01:38 +0000 (Fri, 22 Oct 2010) Log Message: ----------- Merged revisions 8758 via svnmerge from https://matplotlib.svn.sf.net/svnroot/matplotlib/branches/v1_0_maint ........ r8758 | mdboom | 2010-10-22 11:00:31 -0400 (Fri, 22 Oct 2010) | 2 lines [3092255] Fix the direction of scroll event in Tk backend to match other backends. ........ Modified Paths: -------------- trunk/matplotlib/lib/matplotlib/backends/backend_tkagg.py Property Changed: ---------------- trunk/matplotlib/ Property changes on: trunk/matplotlib ___________________________________________________________________ Modified: svnmerge-integrated - /branches/mathtex:1-7263 /branches/v0_91_maint:1-6428 /branches/v0_98_5_maint:1-7253 /branches/v1_0_maint:1-8756 /trunk/matplotlib:1-7315 + /branches/mathtex:1-7263 /branches/v0_91_maint:1-6428 /branches/v0_98_5_maint:1-7253 /branches/v1_0_maint:1-8758 /trunk/matplotlib:1-7315 Modified: trunk/matplotlib/lib/matplotlib/backends/backend_tkagg.py =================================================================== --- trunk/matplotlib/lib/matplotlib/backends/backend_tkagg.py 2010-10-22 15:00:31 UTC (rev 8758) +++ trunk/matplotlib/lib/matplotlib/backends/backend_tkagg.py 2010-10-22 15:01:38 UTC (rev 8759) @@ -300,8 +300,8 @@ x = event.x y = self.figure.bbox.height - event.y num = getattr(event, 'num', None) - if num==4: step = -1 - elif num==5: step = +1 + if num==4: step = +1 + elif num==5: step = -1 else: step = 0 FigureCanvasBase.scroll_event(self, x, y, step, guiEvent=event) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |