def __init__(self): QWidget.__init__(self) self.setWindowTitle("Run Analysis") self.activateWindow() self.analysis_module = AnalysisModuleSelector(load_all = True, help_link = "config/analysis/analysis_module") self.target_case_text = QLineEdit() self.source_case_selector = CaseSelector(update_ert = False) layout = QFormLayout() layout.addRow("Analysis", self.analysis_module) layout.addRow("Target case", self.target_case_text) layout.addRow("Source case", self.source_case_selector) self.setLayout(layout)
class RunAnalysisPanel(QWidget): def __init__(self): QWidget.__init__(self) self.setWindowTitle("Run Analysis") self.activateWindow() self.analysis_module = AnalysisModuleSelector( load_all=True, help_link="config/analysis/analysis_module") self.target_case_text = QLineEdit() self.source_case_selector = CaseSelector(update_ert=False) layout = QFormLayout() layout.addRow("Analysis", self.analysis_module) layout.addRow("Target case", self.target_case_text) layout.addRow("Source case", self.source_case_selector) self.setLayout(layout) def target_case(self): return str(self.target_case_text.text()) def source_case(self): return str(self.source_case_selector.currentText()) def module(self): return self.analysis_module.getSelectedAnalysisModuleName()
class RunAnalysisPanel(QWidget): def __init__(self): QWidget.__init__(self) self.setWindowTitle("Run Analysis") self.activateWindow() self.analysis_module = AnalysisModuleSelector(load_all = True, help_link = "config/analysis/analysis_module") self.target_case_text = QLineEdit() self.source_case_selector = CaseSelector(update_ert = False) layout = QFormLayout() layout.addRow("Analysis", self.analysis_module) layout.addRow("Target case", self.target_case_text) layout.addRow("Source case", self.source_case_selector) self.setLayout(layout) def target_case(self): return str(self.target_case_text.text()) def source_case(self): return str(self.source_case_selector.currentText()) def module(self): return self.analysis_module.getSelectedAnalysisModuleName()