From: <pki...@us...> - 2008-07-25 06:30:54
|
Revision: 5867 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5867&view=rev Author: pkienzle Date: 2008-07-25 06:30:52 +0000 (Fri, 25 Jul 2008) Log Message: ----------- tk mouse wheel: y values start from the top of the screen Modified Paths: -------------- trunk/matplotlib/lib/matplotlib/backends/backend_tkagg.py Modified: trunk/matplotlib/lib/matplotlib/backends/backend_tkagg.py =================================================================== --- trunk/matplotlib/lib/matplotlib/backends/backend_tkagg.py 2008-07-25 05:01:18 UTC (rev 5866) +++ trunk/matplotlib/lib/matplotlib/backends/backend_tkagg.py 2008-07-25 06:30:52 UTC (rev 5867) @@ -291,6 +291,7 @@ if w == self._tkcanvas: x = event.x_root - w.winfo_rootx() y = event.y_root - w.winfo_rooty() + y = self.figure.bbox.height - y step = event.delta/120. 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. |