diff options
author | brenda-br | 2023-01-19 13:50:43 +0530 |
---|---|---|
committer | brenda-br | 2023-01-19 13:50:43 +0530 |
commit | 474b6c930b9983fa36746bd43f54138af6767aaa (patch) | |
tree | d9fd98127a66f9b2180ebaed483fe7ab430615e2 | |
parent | f5857f755b7d7f099c20c1dc29a010b6ff954e05 (diff) | |
download | Chemical-Simulator-GUI-474b6c930b9983fa36746bd43f54138af6767aaa.tar.gz Chemical-Simulator-GUI-474b6c930b9983fa36746bd43f54138af6767aaa.tar.bz2 Chemical-Simulator-GUI-474b6c930b9983fa36746bd43f54138af6767aaa.zip |
Fix #41 Variable and Unit displayed for remaining unit operations
-rw-r--r-- | Undo.dat | bin | 3471 -> 1014 bytes | |||
-rw-r--r-- | UnitOperations.py | 12 |
2 files changed, 12 insertions, 0 deletions
Binary files differ diff --git a/UnitOperations.py b/UnitOperations.py index 912c19e..da01df0 100644 --- a/UnitOperations.py +++ b/UnitOperations.py @@ -43,6 +43,18 @@ class UnitOperation(): params[i] = self.variables[i]['value'] return params + + def param_getter_tooltip(self,mode=None): + params = {} + if mode == None and self.modes_list: + self.mode = self.modes_list[0] + else: + self.mode = mode + params[self.mode] = None + for i in self.parameters: + params[self.variables[i]['name']] = str(self.variables[i]['value'])+' '+self.variables[i]['unit'] + + return params def param_setter(self,params): print("param_setter ", params) |