summaryrefslogtreecommitdiff
path: root/UnitOperations.py
diff options
context:
space:
mode:
Diffstat (limited to 'UnitOperations.py')
-rw-r--r--UnitOperations.py12
1 files changed, 12 insertions, 0 deletions
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)