.. include:: headings.inc .. _EventLoopActivator: ========================================================================================================================================== |phoenix_title| **EventLoopActivator** ========================================================================================================================================== Makes an event loop temporarily active. This class is used to make the event loop active during its life-time, e.g.: :: class MyEventLoop(wx.EventLoopBase): def RunMyLoop(self): loop = MyEventLoop() activate = wx.EventLoopActivator(loop) # other code... # the previously active event loop restored here .. seealso:: :ref:`EventLoopBase` | |class_hierarchy| Inheritance Diagram ===================================== Inheritance diagram for class **EventLoopActivator** .. raw:: html

Inheritance diagram of EventLoopActivator

| |method_summary| Methods Summary ================================ ================================================================================ ================================================================================ :meth:`~EventLoopActivator.__init__` Makes the loop passed as the parameter currently active. ================================================================================ ================================================================================ | |api| Class API =============== .. class:: EventLoopActivator(object) Makes an event loop temporarily active. **Possible constructors**:: EventLoopActivator(loop) .. method:: __init__(self, loop) Makes the loop passed as the parameter currently active. This saves the current return value of :meth:`EventLoopBase.GetActive` and then calls :meth:`EventLoopBase.SetActive` with the given `loop`. :param `loop`: :type `loop`: EventLoopBase