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")
评论列表
文章目录