wx.lib.floatcanvas.FloatCanvas._MouseEvent¶
This event class takes a regular wxWindows mouse event as a parameter, and wraps it so that there is access to all the original methods. This is similar to subclassing, but you can’t subclass a wxWindows event
The goal is to be able to it just like a regular mouse event.
It adds the method:
GetCoords() , which returns an (x,y) tuple in world coordinates.
Another difference is that it is a CommandEvent, which propagates up the window hierarchy until it is handled.
Class Hierarchy¶
Known Superclasses¶
Methods Summary¶
Initialize self. See help(type(self)) for accurate signature. |
|
Class API¶
- class _MouseEvent(wx.PyCommandEvent)¶
This event class takes a regular wxWindows mouse event as a parameter, and wraps it so that there is access to all the original methods. This is similar to subclassing, but you can’t subclass a wxWindows event
The goal is to be able to it just like a regular mouse event.
It adds the method:
GetCoords() , which returns an (x,y) tuple in world coordinates.
Another difference is that it is a CommandEvent, which propagates up the window hierarchy until it is handled.
Methods¶
- __init__(self, EventType, NativeEvent, WinID, Coords=None)¶
Initialize self. See help(type(self)) for accurate signature.
- GetCoords(self)¶