コード例 #1
0
ファイル: GuiApp.py プロジェクト: mgoral/subconvert
class SubApplication:
    def __init__(self, args, parser):
        self._args = args
        self._parser = parser

        self._app = QApplication(sys.argv)
        self._gui = MainWindow(self._args, self._parser)

    def cleanup(self):
        self._gui.cleanup()

    def run(self):
        # Let the interpreter run each 500 ms.
        timer = QTimer()
        timer.start(500)
        timer.timeout.connect(lambda: None)

        self._gui.show()
        return self._app.exec_()
コード例 #2
0
ファイル: GuiApp.py プロジェクト: mgoral/subconvert
    def __init__(self, args, parser):
        self._args = args
        self._parser = parser

        self._app = QApplication(sys.argv)
        self._gui = MainWindow(self._args, self._parser)