def _run_mainloop():
    while True:
        try:
            EventLoop.run()
            stopTouchApp()
            break
        except BaseException as inst:
            # use exception manager first
            r = ExceptionManager.handle_exception(inst)
            if r == ExceptionManager.RAISE:
                stopTouchApp()
                raise
            else:
                pass
If no window has been created, this will be the executed mainloop.
dataset/ETHPy150Open kivy/kivy/kivy/base.py/_run_mainloop