wx.PyCommandEvent

Inheritance diagram for wx.PyCommandEvent:



Description

wx.PyCommandEvent can be used as a base class for implementing custom event types in Python, where the event shoudl travel up to parent windows looking for a handler. You should derived from this class instead of wx.CommandEvent because this class is Python-aware and is able to transport its Python bits safely through the wxWidgets event system and have them still be there when the event handler is invoked.

See also

wx.PyEvent

Methods Summary

Class API

Methods

__init__(eventType=wx.EVT_NULL, id=0)

Constructor.

Parameters:

  • eventType (eventtype)
  • id (int)

Returns:

wx.PyCommandEvent