diff options
author | brenda-br | 2023-02-07 21:47:00 +0530 |
---|---|---|
committer | brenda-br | 2023-02-07 21:47:00 +0530 |
commit | 814d2a6150fe6f7e914c6c63b4e9e8a88c0cf5b2 (patch) | |
tree | eb7ae203ceb576d4aca8ae8138f9aa1ae188fde9 /Streams.py | |
parent | 80dc2915ff93611a3a8d4852d328f71462ae534d (diff) | |
download | Chemical-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.py | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -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) |