.. wxPython Phoenix documentation This file was generated by Phoenix's sphinx generator and associated tools, do not edit by hand. Copyright: (c) 2011-2020 by Total Control Software License: wxWindows License .. include:: headings.inc .. _wx.PyCommandEvent: ========================================================================================================================================== |phoenix_title| **wx.PyCommandEvent** ========================================================================================================================================== :class:`PyCommandEvent` can be used as a base class for implementing custom event types in Python. You should derive from this class instead of :class:`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. Note that since :class:`PyCommandEvent` is taking care of preserving the extra attributes that have been set then you do not need to override the Clone method in your derived classes. .. seealso:: :class:`PyEvent` | |class_hierarchy| Class Hierarchy ================================= .. raw:: html
Inheritance diagram for class PyCommandEvent: