diff options
author | Pravin Dalve | 2021-06-22 00:49:23 +0530 |
---|---|---|
committer | Pravin Dalve | 2021-06-22 00:49:23 +0530 |
commit | 4f47bbc5cb8a325bdb31776d5c9f2963603695d4 (patch) | |
tree | 6de70decc9a0907b5fc8b58452c28e85a84d24db | |
parent | b590064106ff19d990beb824dabd653eb473d378 (diff) | |
download | Chemical-Simulator-GUI-4f47bbc5cb8a325bdb31776d5c9f2963603695d4.tar.gz Chemical-Simulator-GUI-4f47bbc5cb8a325bdb31776d5c9f2963603695d4.tar.bz2 Chemical-Simulator-GUI-4f47bbc5cb8a325bdb31776d5c9f2963603695d4.zip |
update compounds method added in distillation column dockwidget
-rw-r--r-- | DockWidgets/DockWidgetDistillationColumn.py | 10 | ||||
-rw-r--r-- | DockWidgets/DockWidgetShortcutColumn.py | 2 | ||||
-rw-r--r-- | DockWidgets/__pycache__/DockWidgetDistillationColumn.cpython-37.pyc | bin | 9410 -> 9775 bytes | |||
-rw-r--r-- | DockWidgets/__pycache__/DockWidgetShortcutColumn.cpython-37.pyc | bin | 4976 -> 4976 bytes | |||
-rw-r--r-- | Undo.dat | bin | 10820 -> 2087 bytes |
5 files changed, 11 insertions, 1 deletions
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 Binary files differindex fb120e4..8235011 100644 --- a/DockWidgets/__pycache__/DockWidgetDistillationColumn.cpython-37.pyc +++ b/DockWidgets/__pycache__/DockWidgetDistillationColumn.cpython-37.pyc diff --git a/DockWidgets/__pycache__/DockWidgetShortcutColumn.cpython-37.pyc b/DockWidgets/__pycache__/DockWidgetShortcutColumn.cpython-37.pyc Binary files differBinary files differindex d6c2197..42e53d9 100644 --- a/DockWidgets/__pycache__/DockWidgetShortcutColumn.cpython-37.pyc +++ b/DockWidgets/__pycache__/DockWidgetShortcutColumn.cpython-37.pyc |