示例#1
0
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_()
示例#2
0
def signit_handler(*args):

    QGuiApplication.quit()