dabo Commit
Revision 3883
Date: 2008-01-17 20:04:29 -0800 (Thu, 17 Jan 2008)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/3883

Changed:
U   trunk/dabo/ui/uiwx/__init__.py

Log:
Added capture of the MouseWheel direction and amount in the event's EventData. 
You can now reference this in 'evt.wheelRotation'.


Diff:
Modified: trunk/dabo/ui/uiwx/__init__.py
===================================================================
--- trunk/dabo/ui/uiwx/__init__.py      2008-01-17 21:49:01 UTC (rev 3882)
+++ trunk/dabo/ui/uiwx/__init__.py      2008-01-18 04:04:29 UTC (rev 3883)
@@ -357,6 +357,11 @@
                ed["shiftDown"] = wxEvt.ShiftDown()
                if isinstance(wxEvt, wx.MouseEvent):
                        ed["mouseDown"] = ed["dragging"] = wxEvt.Dragging()
+                       try:
+                               # MouseWheel scroll information
+                               ed["wheelRotation"] = wxEvt.WheelRotation * 
wxEvt.LinesPerAction
+                       except AttributeError:
+                               pass
                        
        if isinstance(wxEvt, wx.ListEvent):
                pos = wxEvt.GetPosition()




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/dabo-dev/[EMAIL PROTECTED]

Reply via email to