Skip to content
Snippets Groups Projects
Commit 439c095d authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

treat strings like numbers

parent 31f0937d
No related branches found
No related tags found
No related merge requests found
...@@ -178,8 +178,8 @@ class client : ...@@ -178,8 +178,8 @@ class client :
if 'value' not in param : #make the parameter readOnly if 'value' not in param : #make the parameter readOnly
p.readOnly = 1 p.readOnly = 1
p.attributes={'Highlight':'AliceBlue'} p.attributes={'Highlight':'AliceBlue'}
self._define_parameter(p) value = self._define_parameter(p)
return p.value return value
def setNumber(self, name, **param): def setNumber(self, name, **param):
if not self.socket : if not self.socket :
...@@ -203,8 +203,6 @@ class client : ...@@ -203,8 +203,6 @@ class client :
p.fromchar(msg).modify(**param) p.fromchar(msg).modify(**param)
elif t == self._GMSH_PARAMETER_NOT_FOUND : #create a new parameter elif t == self._GMSH_PARAMETER_NOT_FOUND : #create a new parameter
p.modify(**param) p.modify(**param)
p.readOnly = 1
p.attributes={'Highlight':'AliceBlue'}
self._send(self._GMSH_PARAMETER, p.tochar()) self._send(self._GMSH_PARAMETER, p.tochar())
def addNumberChoice(self, name, value): def addNumberChoice(self, name, value):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment