summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrenda-br2023-01-19 13:50:43 +0530
committerbrenda-br2023-01-19 13:50:43 +0530
commit474b6c930b9983fa36746bd43f54138af6767aaa (patch)
treed9fd98127a66f9b2180ebaed483fe7ab430615e2
parentf5857f755b7d7f099c20c1dc29a010b6ff954e05 (diff)
downloadChemical-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.datbin3471 -> 1014 bytes
-rw-r--r--UnitOperations.py12
2 files changed, 12 insertions, 0 deletions
diff --git a/Undo.dat b/Undo.dat
index 435cb62..01eaa36 100644
--- a/Undo.dat
+++ b/Undo.dat
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)