From da41a637d83159057cfdae8c5197c682f420bd94 Mon Sep 17 00:00:00 2001 From: Ludovico Bianchi Date: Thu, 28 Sep 2023 18:57:44 -0500 Subject: [PATCH] Remove temporary method with non-modular implementation --- foqus_lib/gui/main/mainWindow.py | 64 -------------------------------- 1 file changed, 64 deletions(-) diff --git a/foqus_lib/gui/main/mainWindow.py b/foqus_lib/gui/main/mainWindow.py index aa94d1791..f5d3051d7 100644 --- a/foqus_lib/gui/main/mainWindow.py +++ b/foqus_lib/gui/main/mainWindow.py @@ -158,70 +158,6 @@ def __init__( else: self.tstimer = None - def _create_frames_old(self) -> None: - ### Create the main window widgets for stacked widget - # Create the flowsheet editor/viewer - self.flowsheetEditor = drawFlowsheet(self.dat, self) - self.flowsheetEditor.nodeSelected.connect(self.setNodePanel) - self.flowsheetEditor.edgeSelected.connect(self.setEdgePanel) - self.flowsheetEditor.updateEdgeEdit.connect(self.applyAndUpdateEdgeEdit) - # self.flowsheetEditor.noneSelected.connect(self.fsSelectNone) - self.flowsheetEditor.updateFS.connect(self.refreshFlowsheet) - self.flowsheetEditor.updateFSPos.connect(self.refreshNodeCoord) - # Set-up dash/home widget - self.dashFrame = dashFrame(self) - self.dashFrame.buttonBox.rejected.connect(self.cancelSession) - self.dashFrame.buttonBox.button(QDialogButtonBox.Help).clicked.connect( - self.showHelp - ) - # Basic Data tab - self.basicDataFrame = basicDataParentFrame(parent=self) - # Set up UQ setup widget - self.uqSetupFrame = uqSetupFrame(self.dat, self) - # set-up opt setup widget - self.optSetupFrame = optSetupFrame(self.dat, self) - self.optSetupFrame.setStatusBar.connect(self.setStatus) - self.optSetupFrame.updateGraph.connect(self.refreshFlowsheet) - # OUU screen - self.ouuSetupFrame = ouuSetupFrame(self.dat, self) - # SDOE screen - self.sdoeSetupFrame = sdoeSetupFrame(self.dat, self) - # surrogate screen - self.surFrame = surrogateFrame(self.dat, self) - self.surFrame.setStatusBar.connect(self.setStatus) - # heat integration screen - self.heatIntFrame = heatIntegrationFrame(self.dat, self) - # settings screen - self.fsettingsFrame = settingsFrame(self.dat, self) - self.fsettingsFrame.waiting.connect(self.setCursorWaiting) - self.fsettingsFrame.notwaiting.connect(self.setCursorNormal) - # Data-Browser widget - self.dataBrowserDialog = dataBrowserDialog(self.dat, self) - ## Add widgets to stacked widget - self.mainWidget.addWidget(self.dashFrame) # 0 - self.mainWidget.addWidget(self.basicDataFrame) # 1 - self.mainWidget.addWidget(self.flowsheetEditor) # 2 - self.mainWidget.addWidget(self.uqSetupFrame) # 3 - self.mainWidget.addWidget(self.optSetupFrame) # 4 - self.mainWidget.addWidget(self.ouuSetupFrame) # 5 - self.mainWidget.addWidget(self.sdoeSetupFrame) # 6 - self.mainWidget.addWidget(self.surFrame) # 7 - self.mainWidget.addWidget(self.heatIntFrame) # 8 - self.mainWidget.addWidget(self.fsettingsFrame) # 9 - # make a dictionary to look up widget indexes in stacked widget - self.screenIndex = { - "home": 0, - "basicData": 1, - "flow": 2, - "uq": 3, - "opt": 4, - "ouu": 5, - "sdoe": 6, - "surrogate": 7, - "heatInt": 8, - "settings": 9, - } - def _load_frames_from_plugins( self, session, register_func_name: str = "foqus_register_gui" ):