コード例 #1
0
ファイル: mainloop_qt.py プロジェクト: DaveMDS/nepymc
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()