def _run_mainloop(): '''If user haven't create a window, this is the executed mainloop''' while True: try: pymt_evloop.run() stopTouchApp() break except BaseException, inst: # use exception manager first r = pymt_exception_manager.handle_exception(inst) if r == ExceptionManager.RAISE: stopTouchApp() raise else: pass
def _run_mainloop(): '''Main loop is done by us.''' while True: try: pymt_evloop.run() stopTouchApp() break except BaseException, inst: # use exception manager first r = pymt_exception_manager.handle_exception(inst) if r == ExceptionManager.RAISE: stopTouchApp() raise else: pass