Inheritance diagram for wx.PyEvent:
wx.PyEvent can be used as a base class for implementing custom event types in Python. You should derived from this class instead of wx.Event 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