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
See also
Makes an event loop temporarily active.
Possible constructors:
EventLoopActivator(loop)
Makes the loop passed as the parameter currently active.
This saves the current return value of EventLoopBase.GetActive and then calls EventLoopBase.SetActive with the given loop.
Parameters: | loop (EventLoopBase) – |
---|