def run(self, command=None, argv=None): result = QtInterface.run(self, command, argv) self._status.wait() while self._log.isVisible(): time.sleep(0.1) while qt.QApplication.eventLoop().hasPendingEvents(): qt.QApplication.eventLoop().processEvents(qt.QEventLoop.AllEvents) return result