MCPcopy Create free account
hub / github.com/ipython/ipython / start_event_loop_wx

Function start_event_loop_wx

IPython/lib/guisupport.py:97–106  ·  view source on GitHub ↗

Start the wx event loop in a consistent manner.

(app=None)

Source from the content-addressed store, hash-verified

95 return app.IsMainLoopRunning()
96
97def start_event_loop_wx(app=None):
98 """Start the wx event loop in a consistent manner."""
99 if app is None:
100 app = get_app_wx()
101 if not is_event_loop_running_wx(app):
102 app._in_event_loop = True
103 app.MainLoop()
104 app._in_event_loop = False
105 else:
106 app._in_event_loop = True
107
108#-----------------------------------------------------------------------------
109# qt4

Callers

nothing calls this directly

Calls 2

get_app_wxFunction · 0.85
is_event_loop_running_wxFunction · 0.85

Tested by

no test coverage detected