********** wx.PyEvent ********** Inheritance diagram for `wx.PyEvent`: | .. inheritance-diagram:: wx.PyEvent | Description =========== `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. .. seealso:: `wx.PyCommandEvent `_ Derived From ^^^^^^^^^^^^^ * `wx.Event `_ * `wx.Object <../Widgets/wx.Object.html>`_ Methods Summary ^^^^^^^^^^^^^^^ * `__init__ <#__init__>`_ Class API ========= Methods ^^^^^^^ .. method:: __init__(winid=0, eventType=wx.EVT_NULL) Constructor. **Parameters:** * `winid` (int) * `eventType` (eventtype) | **Returns:** `wx.PyEvent `_