From 4f47bbc5cb8a325bdb31776d5c9f2963603695d4 Mon Sep 17 00:00:00 2001 From: Pravin Dalve Date: Tue, 22 Jun 2021 00:49:23 +0530 Subject: update compounds method added in distillation column dockwidget --- DockWidgets/DockWidgetDistillationColumn.py | 10 ++++++++++ DockWidgets/DockWidgetShortcutColumn.py | 2 +- .../DockWidgetDistillationColumn.cpython-37.pyc | Bin 9410 -> 9775 bytes .../DockWidgetShortcutColumn.cpython-37.pyc | Bin 4976 -> 4976 bytes Undo.dat | Bin 10820 -> 2087 bytes 5 files changed, 11 insertions(+), 1 deletion(-) diff --git a/DockWidgets/DockWidgetDistillationColumn.py b/DockWidgets/DockWidgetDistillationColumn.py index bd5a683..34b8590 100644 --- a/DockWidgets/DockWidgetDistillationColumn.py +++ b/DockWidgets/DockWidgetDistillationColumn.py @@ -117,6 +117,16 @@ class DockWidgetDistillationColumn(QDockWidget, ui_dialog): except Exception as e: print(e) + def update_compounds(self): + self.cb2.clear() + self.cb4.clear() + for j in self.obj.compounds: + self.cb2.addItem(str(j)) + self.cb2.setCurrentText(self.obj.variables['C_Spec']['comp']) + for j in self.obj.compounds: + self.cb4.addItem(str(j)) + self.cb4.setCurrentText(self.obj.variables['R_Spec']['comp']) + def fun2(self): if self.cb1.currentText() == 'Compound Molar Fraction' or self.cb1.currentText() == 'Compound Molar Flow (mol/s)': self.cb2.setDisabled(False) diff --git a/DockWidgets/DockWidgetShortcutColumn.py b/DockWidgets/DockWidgetShortcutColumn.py index a6fe33d..3d0c287 100644 --- a/DockWidgets/DockWidgetShortcutColumn.py +++ b/DockWidgets/DockWidgetShortcutColumn.py @@ -70,7 +70,7 @@ class DockWidgetShortcutColumn(QDockWidget,ui_dialog): except Exception as e: print(e) - + def update_compounds(self): self.cb1.clear() self.cb2.clear() diff --git a/DockWidgets/__pycache__/DockWidgetDistillationColumn.cpython-37.pyc b/DockWidgets/__pycache__/DockWidgetDistillationColumn.cpython-37.pyc index fb120e4..8235011 100644 Binary files a/DockWidgets/__pycache__/DockWidgetDistillationColumn.cpython-37.pyc and b/DockWidgets/__pycache__/DockWidgetDistillationColumn.cpython-37.pyc differ diff --git a/DockWidgets/__pycache__/DockWidgetShortcutColumn.cpython-37.pyc b/DockWidgets/__pycache__/DockWidgetShortcutColumn.cpython-37.pyc index d6c2197..42e53d9 100644 Binary files a/DockWidgets/__pycache__/DockWidgetShortcutColumn.cpython-37.pyc and b/DockWidgets/__pycache__/DockWidgetShortcutColumn.cpython-37.pyc differ diff --git a/Undo.dat b/Undo.dat index e3cc693..7cfa83b 100644 Binary files a/Undo.dat and b/Undo.dat differ -- cgit