def start_event_loop_wx(app=None):
    if app is None:
        app = get_app_wx()
    if not is_event_loop_running_wx(app):
        app._in_event_loop = True
        app.MainLoop()
        app._in_event_loop = False
    else:
        app._in_event_loop = True

#-----------------------------------------------------------------------------
# qt4
#-----------------------------------------------------------------------------
Start the wx event loop in a consistent manner.
dataset/ETHPy150Open enthought/pyface/pyface/util/guisupport.py/start_event_loop_wx