def _run_mainloop():
 while True:
  try:
   EventLoop.run()
   stopTouchApp()
   break
  except BaseException as inst:
   r = ExceptionManager.handle_exception(inst)
   if (r == ExceptionManager.RAISE):
    stopTouchApp()
    raise
   else:
    pass

def _run_mainloop ( ) : while True : try : EventLoop . run ( ) stopTouchApp ( ) break except BaseException as inst : r = ExceptionManager . handle_exception ( inst ) if ( r == ExceptionManager . RAISE ) : stopTouchApp ( ) raise else : pass
if no window has been created .