diff options
author | pravindalve | 2021-03-26 14:54:07 +0530 |
---|---|---|
committer | pravindalve | 2021-03-26 14:54:07 +0530 |
commit | 129568baf9da34272127507a138ec30af888b40c (patch) | |
tree | 214363d3ccefe02fac7364ec2a1ed5f717b675c4 /DockWidgets/DockWidgetDistillationColumn.py | |
parent | 8336446737774a7a0b336d02a3701166577250e5 (diff) | |
download | Chemical-Simulator-GUI-129568baf9da34272127507a138ec30af888b40c.tar.gz Chemical-Simulator-GUI-129568baf9da34272127507a138ec30af888b40c.tar.bz2 Chemical-Simulator-GUI-129568baf9da34272127507a138ec30af888b40c.zip |
Thermo package slot added to Distillation input
Diffstat (limited to 'DockWidgets/DockWidgetDistillationColumn.py')
-rw-r--r-- | DockWidgets/DockWidgetDistillationColumn.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/DockWidgets/DockWidgetDistillationColumn.py b/DockWidgets/DockWidgetDistillationColumn.py index dea2391..e93ed47 100644 --- a/DockWidgets/DockWidgetDistillationColumn.py +++ b/DockWidgets/DockWidgetDistillationColumn.py @@ -102,6 +102,13 @@ class DockWidgetDistillationColumn(QDockWidget,ui_dialog): self.input_dict.append(self.cb4) self.input_dict.append(self.le8) + self.lines = [line.rstrip('\n') for line in open('thermopackage.txt')] + for j in self.lines: + self.cbTP.addItem(str(j)) + self.cbTP.setCurrentText(self.obj.variables['thermo_package']['value']) + + self.input_dict.append(self.cbTP) + # self.input_dict = [self.le1, self.le2, self.le3, self.cb5, self.le5, self.cb1, self.cb2, self.le6, self.le7, self.cb3, self.cb4, self.le8] except Exception as e: @@ -154,7 +161,9 @@ class DockWidgetDistillationColumn(QDockWidget,ui_dialog): print(temp+8) self.dict.append(int(self.input_dict[temp+9].text())) print(temp+9) - + self.dict.append(self.input_dict[temp+10].currentText()) + print(temp + 10) + print("param ", self.dict) self.obj.param_setter(self.dict) self.hide() |