|
From: <md...@us...> - 2010-10-22 15:00:38
|
Revision: 8758
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8758&view=rev
Author: mdboom
Date: 2010-10-22 15:00:31 +0000 (Fri, 22 Oct 2010)
Log Message:
-----------
[3092255] Fix the direction of scroll event in Tk backend to match other backends.
Modified Paths:
--------------
branches/v1_0_maint/lib/matplotlib/backends/backend_tkagg.py
Modified: branches/v1_0_maint/lib/matplotlib/backends/backend_tkagg.py
===================================================================
--- branches/v1_0_maint/lib/matplotlib/backends/backend_tkagg.py 2010-10-19 14:30:24 UTC (rev 8757)
+++ branches/v1_0_maint/lib/matplotlib/backends/backend_tkagg.py 2010-10-22 15:00:31 UTC (rev 8758)
@@ -312,8 +312,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.
|