**************** wx.ActivateEvent **************** Inheritance diagram for `wx.ActivateEvent`: | .. inheritance-diagram:: wx.ActivateEvent | Description =========== An activate event is sent when a window or application is being activated or deactivated. .. seealso: `wx.App.IsActive <../Widgets/wx.PyApp.html#IsActive>`_ Derived From ^^^^^^^^^^^^^ * `wx.Event `_ * `wx.Object <../Widgets/wx.Object.html>`_ Remarks ^^^^^^^ A top-level window (a dialog or frame) receives an activate event when it is being activated or deactivated. This is indicated visually by the title bar changing colour, and a subwindow gaining the keyboard focus. An application is activated or deactivated when one of its frames becomes activated, or a frame becomes inactivated resulting in all application frames being inactive. Please note that usually you should call `event.Skip()` in your handlers for these events as not doing so can result in strange effects. Event Handling ^^^^^^^^^^^^^^ ================================================== ================================================== Event Name Description ================================================== ================================================== wx.EVT_ACTIVATE(func) Process a ``wx.wxEVT_ACTIVATE`` event. wx.EVT_ACTIVATE_APP(func) Process a ``wx.wxEVT_ACTIVATE_APP`` event. wx.EVT_HIBERNATE(func) Process a hibernate event, supplying the member function. This event applies to `wx.App <../Widgets/wx.App.html>`_ only, and only on Windows SmartPhone and PocketPC. It is generated when the system is low on memory; the application should free up as much memory as possible, and restore full working state when it receives a ``wx.EVT_ACTIVATE`` or ``wx.EVT_ACTIVATE_APP`` event. ================================================== ================================================== Methods Summary ^^^^^^^^^^^^^^^ * `__init__ <#__init__>`_ * `GetActive <#GetActive>`_ Properties Summary ^^^^^^^^^^^^^^^^^^ * `Active <#Active>`_ Class API ========= Methods ^^^^^^^ .. method:: __init__(type=wx.wxEVT_NULL, active=True, Id=0) Constructor. **Parameters:** * `type` (eventtype) * `active` (bool) * `Id` (int) | **Returns:** `wx.ActivateEvent `_ -------- .. method:: GetActive() Returns ``True`` if the application or window is being activated, ``False`` otherwise. | **Returns:** `bool` -------- Properties ^^^^^^^^^^ .. attribute:: Active See `GetActive <#GetActive>`_