summaryrefslogtreecommitdiff
path: root/Streams.py
diff options
context:
space:
mode:
authorbrenda-br2023-02-07 21:47:00 +0530
committerbrenda-br2023-02-07 21:47:00 +0530
commit814d2a6150fe6f7e914c6c63b4e9e8a88c0cf5b2 (patch)
treeeb7ae203ceb576d4aca8ae8138f9aa1ae188fde9 /Streams.py
parent80dc2915ff93611a3a8d4852d328f71462ae534d (diff)
downloadChemical-Simulator-GUI-814d2a6150fe6f7e914c6c63b4e9e8a88c0cf5b2.tar.gz
Chemical-Simulator-GUI-814d2a6150fe6f7e914c6c63b4e9e8a88c0cf5b2.tar.bz2
Chemical-Simulator-GUI-814d2a6150fe6f7e914c6c63b4e9e8a88c0cf5b2.zip
Fix #52 Input data tab disabled on reopening saved file
Diffstat (limited to 'Streams.py')
-rw-r--r--Streams.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/Streams.py b/Streams.py
index 53c0a19..319819d 100644
--- a/Streams.py
+++ b/Streams.py
@@ -427,3 +427,19 @@ class MaterialStream():
for key,value in self.eqn_dict.items():
self.OM_data_eqn = self.OM_data_eqn + self.name + '.'+ key + ' = ' + str(value) + ';\n'
return self.OM_data_eqn
+
+ def disableInputDataTab(self,dockwidget):
+ #setting the value of input data tab in dock widget and disabling them
+ dockwidget.comboBox.setDisabled(True)
+ dockwidget.input_dict['P'].setText(str(self.variables['P']['value']))
+ dockwidget.input_dict['P'].setDisabled(True)
+ dockwidget.input_dict['T'].setText(str(self.variables['T']['value']))
+ dockwidget.input_dict['T'].setDisabled(True)
+ dockwidget.input_dict['MolFlow'].setText(str(self.variables['F_p[1]']['value']))
+ dockwidget.input_dict['MolFlow'].setDisabled(True)
+ dockwidget.cbTP.setCurrentText(str(self.thermo_package))
+ dockwidget.cbTP.setDisabled(True)
+ dockwidget.pushButton_2.setDisabled(True)
+ for index,k in enumerate(dockwidget.x_pclist):
+ k.setText(str(self.variables['x_pc']['value'][index]))
+ k.setDisabled(True)