wx.PyEvtHandler

Inheritance diagram for wx.PyEvtHandler:



Description

The wx.PyEvtHandler class can be used to intercept calls to the ProcessEvent method. Simply derive a new class from this one, override ProcessEvent, and then push an instance of the class onto the event handler chain for a window using wx.Window.PushEventHandler.

Derived From

Methods Summary

Class API

Methods

__init__()

The wx.PyEvtHandler class can be used to intercept calls to the ProcessEvent method. Simply derive a new class from this one, override ProcessEvent, and then push an instance of the class onto the event handler chain for a window using wx.Window.PushEventHandler.


Returns:

wx.PyEvtHandler


ProcessEvent(event)

Override this method to intercept the events being sent to the window.

The default implementation searches the event tables and calls event handler functions if matching event bindings are found.

Parameters:

  • event (wx.Event): The event to process.