.. wxPython Phoenix documentation This file was generated by Phoenix's sphinx generator and associated tools, do not edit by hand. Copyright: (c) 2011-2020 by Total Control Software License: wxWindows License .. include:: headings.inc .. currentmodule:: wx.lib.floatcanvas.FloatCanvas .. highlight:: python .. _wx.lib.floatcanvas.FloatCanvas._MouseEvent: ========================================================================================================================================== |phoenix_title| **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| Class Hierarchy ================================= .. raw:: html
Inheritance diagram for class _MouseEvent:
| |super_classes| Known Superclasses ================================== :class:`wx.PyCommandEvent` | |method_summary| Methods Summary ================================ ================================================================================ ================================================================================ :meth:`~wx.lib.floatcanvas.FloatCanvas._MouseEvent.__init__` Initialize self. See help(type(self)) for accurate signature. :meth:`~wx.lib.floatcanvas.FloatCanvas._MouseEvent.GetCoords` ================================================================================ ================================================================================ | |api| 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. .. method:: __init__(self, EventType, NativeEvent, WinID, Coords = None) Initialize self. See help(type(self)) for accurate signature. .. method:: GetCoords(self)