preprocessor_controller.py 文件源码

python
阅读 19 收藏 0 点赞 0 评论 0

项目:Visualization 作者: nwrush 项目源码 文件源码
def __init__(self, parent, finished_callback=None):
        super(PreprocessorController, self).__init__(parent=parent)

        self._layout = QVBoxLayout(self)
        self.setLayout(self._layout)

        self._form_widget = QWidget(self)
        self._form_ui = preprocessor_form.Ui_preprocessorForm()
        self._form_ui.setupUi(self._form_widget)
        self._layout.addWidget(self._form_widget)
        self._connect_form_ui()

        self._run_widget = QWidget(self)
        self._run_ui = preprocessor_run.Ui_preprocessorRun()
        self._run_ui.setupUi(self._run_widget)
        self._layout.addWidget(self._run_widget)
        self._connect_run_ui()

        self._timer = QTimer()
        self._timer.setSingleShot(True)
        self._timer.setInterval(500)

        self._preprocessor_thread = None
        self._num_steps = None
        self._message_queue = queue.Queue()
        self._callback = finished_callback

        self.output_name = None

        if not has_preprocessor:
            QMessageBox.about(self, "Missing Preprocessor",
                              "The preprocessor could not be loaded and therefore can't be run\n"
                              "Check the log file for details")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号