wx.ActivateEvent¶An activate event is sent when a window or application is being activated or deactivated.
Events Emitted by this Class¶Handlers bound for the following event types will receive a wx.ActivateEvent parameter.
wxEVT_ACTIVATE event.wxEVT_ACTIVATE_APP event. This event is received by the App-derived instance only.wxEVT_ACTIVATE or wxEVT_ACTIVATE_APP event.See also
Methods Summary¶__init__ |
Constructor. |
GetActivationReason |
Allows to check if the window was activated by clicking it with the mouse or in some other way. |
GetActive |
Returns True if the application or window is being activated, False otherwise. |
Class API¶wx.ActivateEvent(Event)¶Possible constructors:
ActivateEvent(eventType=wxEVT_NULL, active=True, id=0,
ActivationReason=Reason_Unknown)
An activate event is sent when a window or application is being activated or deactivated.
__init__(self, eventType=wxEVT_NULL, active=True, id=0, ActivationReason=Reason_Unknown)¶Constructor.
| Parameters: |
|
|---|
GetActivationReason(self)¶Allows to check if the window was activated by clicking it with the mouse or in some other way.
This method is currently only implemented in wxMSW and returns Reason_Mouse there if the window was activated by a mouse click and Reason_Unknown if it was activated in any other way (e.g. from keyboard or programmatically).
Under all the other platforms, Reason_Unknown is always returned.
| Return type: | wx.ActivateEvent.Reason |
|---|
New in version 3.0.
GetActive(self)¶Returns True if the application or window is being activated, False otherwise.
| Return type: | bool |
|---|