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 /DockWidgets/DockWidgetDistillationColumn.py | |
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
Diffstat (limited to 'DockWidgets/DockWidgetDistillationColumn.py')
-rw-r--r-- | DockWidgets/DockWidgetDistillationColumn.py | 10 |
1 files changed, 10 insertions, 0 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) |