def __init__(self, engine, test_path): self._engine = engine self._custom_setup() #self._filter_traceback() test = self._load_test(test_path) testlet = cooperative.spawn(test, GuiHelper(self._engine.pychan, self)) testlet.link(self._stop_test) self._start()
def handler(self, func): """Temporarily install another gui handler, e.g. to handle a dialog.""" g = cooperative.spawn(func) yield g.join()