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.

-------------------------------------------------------------------------
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

Reply via email to