Table Of Contents

Previous topic

FloatCanvas

Next topic

Arc

This Page

phoenix_title _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 and (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 Inheritance Diagram

Inheritance diagram for class _MouseEvent

Inheritance diagram of _MouseEvent


super_classes Known Superclasses

PyCommandEvent


method_summary Methods Summary

__init__  
GetCoords  

api Class API



class _MouseEvent(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 and (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)


GetCoords(self)