A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://wxpython.org/Phoenix/docs/html/wx.EventLoopActivator.html below:

wx.EventLoopActivator — wxPython Phoenix 4.2.4a1 documentation

wx.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
Class Hierarchy¶

Inheritance diagram for class

EventLoopActivator

:

Methods Summary¶ Class API¶
class wx.EventLoopActivator(object)¶

Possible constructors:

EventLoopActivator(loop) -> None

Makes an event loop temporarily active.


Methods¶
__init__(self, loop)¶

Makes the loop passed as the parameter currently active.

This saves the current return value of wx.EventLoopBase.GetActive and then calls wx.EventLoopBase.SetActive with the given loop.

Parameters:

loop (wx.EventLoopBase)

Return type:

None


__enter__(self)¶

__exit__(self, exc_type, exc_val, exc_tb)¶

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4