class EmcMainLoop_Qt(EmcMainLoop): """ PySide2 implementation of the EmcMainLoop """ def __init__(self, argv=None): super().__init__(argv) self._app = QGuiApplication(argv or []) def delete(self): super().delete() self._app.quit() def run(self): self._app.exec_()
def signit_handler(*args): QGuiApplication.quit()