diff options
author | pravindalve | 2021-01-09 14:27:12 +0530 |
---|---|---|
committer | pravindalve | 2021-01-09 14:27:12 +0530 |
commit | f0e16d03096d0f4221e9500f8047df9bd81854c5 (patch) | |
tree | d8153d364a266d570135f7872ea1a5b19c91465c /DockWidgets | |
parent | b1e1a178aec956738799f7e67451314bafa253e7 (diff) | |
download | Chemical-Simulator-GUI-f0e16d03096d0f4221e9500f8047df9bd81854c5.tar.gz Chemical-Simulator-GUI-f0e16d03096d0f4221e9500f8047df9bd81854c5.tar.bz2 Chemical-Simulator-GUI-f0e16d03096d0f4221e9500f8047df9bd81854c5.zip |
Fixes for Flash for reopening saved values
Diffstat (limited to 'DockWidgets')
-rw-r--r-- | DockWidgets/DockWidgetFlash.py | 3 | ||||
-rw-r--r-- | DockWidgets/__pycache__/DockWidgetMaterialStream.cpython-37.pyc | bin | 8227 -> 8254 bytes |
2 files changed, 3 insertions, 0 deletions
diff --git a/DockWidgets/DockWidgetFlash.py b/DockWidgets/DockWidgetFlash.py index 4e1c5e3..ff8efb5 100644 --- a/DockWidgets/DockWidgetFlash.py +++ b/DockWidgets/DockWidgetFlash.py @@ -27,15 +27,18 @@ class DockWidgetFlash(QDockWidget,ui_dialog): self.lines = [line.rstrip('\n') for line in open('thermopackage.txt')] for j in self.lines: self.cb1.addItem(str(j)) + self.cb1.setCurrentText(self.obj.variables['thermo_package']['value']) self.check1.setText(self.obj.variables['Tdef']['name']+":") self.le2.setText(str(self.obj.variables['Tdef']['value'])) self.u2.setText(self.obj.variables['Tdef']['unit']) self.check1.toggled.connect(self.fun) + self.check1.setChecked(self.obj.variables['BTdef']['value']) self.check2.setText(self.obj.variables['Pdef']['name']+":") self.le3.setText(str(self.obj.variables['Pdef']['value'])) self.u3.setText(self.obj.variables['Pdef']['unit']) self.check2.toggled.connect(self.fun) + self.check2.setChecked(self.obj.variables['BPdef']['value']) self.input_dict = [self.cb1, self.check1, self.le2, self.check2, self.le3] diff --git a/DockWidgets/__pycache__/DockWidgetMaterialStream.cpython-37.pyc b/DockWidgets/__pycache__/DockWidgetMaterialStream.cpython-37.pyc Binary files differindex 7143602..f2c5b98 100644 --- a/DockWidgets/__pycache__/DockWidgetMaterialStream.cpython-37.pyc +++ b/DockWidgets/__pycache__/DockWidgetMaterialStream.cpython-37.pyc |