summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--DockWidgets/DockWidgetDistillationColumn.py10
-rw-r--r--DockWidgets/DockWidgetShortcutColumn.py2
-rw-r--r--DockWidgets/__pycache__/DockWidgetDistillationColumn.cpython-37.pycbin9410 -> 9775 bytes
-rw-r--r--DockWidgets/__pycache__/DockWidgetShortcutColumn.cpython-37.pycbin4976 -> 4976 bytes
-rw-r--r--Undo.datbin10820 -> 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
index fb120e4..8235011 100644
--- a/DockWidgets/__pycache__/DockWidgetDistillationColumn.cpython-37.pyc
+++ b/DockWidgets/__pycache__/DockWidgetDistillationColumn.cpython-37.pyc
Binary files differ
diff --git a/DockWidgets/__pycache__/DockWidgetShortcutColumn.cpython-37.pyc b/DockWidgets/__pycache__/DockWidgetShortcutColumn.cpython-37.pyc
index d6c2197..42e53d9 100644
--- a/DockWidgets/__pycache__/DockWidgetShortcutColumn.cpython-37.pyc
+++ b/DockWidgets/__pycache__/DockWidgetShortcutColumn.cpython-37.pyc
Binary files differ
diff --git a/Undo.dat b/Undo.dat
index e3cc693..7cfa83b 100644
--- a/Undo.dat
+++ b/Undo.dat
Binary files differ