(gui)
Execute the main loop and catch any errors.
Execute the main loop and catch any errors.
Execute the main loop and catch any errors .
def run(gui):
    """Execute the main loop and catch any errors."""
    main = MainThread(gui)

    try:
        main.run()
    except BaseException:
        main.send_gui_event(ThreadEvent.Exception)
        raise
def run ( gui ) : main = MainThread ( gui ) try : main . run ( ) except BaseException : main . send_gui_event ( ThreadEvent . Exception ) raise