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

Inheritance diagram for class _MouseEvent:

super_classes Known Superclasses

wx.PyCommandEvent


method_summary Methods Summary

__init__

Initialize self. See help(type(self)) for accurate signature.

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.


Methods

__init__(self, EventType, NativeEvent, WinID, Coords = None)

Initialize self. See help(type(self)) for accurate signature.



GetCoords(self)