diff options
author | Priyam Nayak | 2021-06-22 08:41:25 +0530 |
---|---|---|
committer | GitHub | 2021-06-22 08:41:25 +0530 |
commit | ecf089991f8f3c15c3c99f376be3b954ec5b3545 (patch) | |
tree | 6de70decc9a0907b5fc8b58452c28e85a84d24db /DockWidgets/DockWidgetDistillationColumn.py | |
parent | 3f8095e27df1ea62c4356c08de09cc42ffca00ed (diff) | |
parent | 4f47bbc5cb8a325bdb31776d5c9f2963603695d4 (diff) | |
download | Chemical-Simulator-GUI-ecf089991f8f3c15c3c99f376be3b954ec5b3545.tar.gz Chemical-Simulator-GUI-ecf089991f8f3c15c3c99f376be3b954ec5b3545.tar.bz2 Chemical-Simulator-GUI-ecf089991f8f3c15c3c99f376be3b954ec5b3545.zip |
Merge pull request #24 from pravindalve/master
Fixed problem of compound updating during simulation
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) |