Commit d37165e3 authored by Yori Fournier's avatar Yori Fournier
Browse files

Merge branch '25-BUG-string-default-value' into 'master'

Bug25 corrected Now string are correctly evaluated

Closes #25

See merge request !14
parents 64c0f144 b0605411
...@@ -92,7 +92,11 @@ class QFunctionFormular(QWidget): ...@@ -92,7 +92,11 @@ class QFunctionFormular(QWidget):
if self.optionalArgs != (): if self.optionalArgs != ():
# make a QLineEdit with default variable for each optionalArgs # make a QLineEdit with default variable for each optionalArgs
for arg, default in zip(self.optionalArgs, self.defaultValues): for arg, default in zip(self.optionalArgs, self.defaultValues):
self.wOptionalArgs.append(QLineEdit(str(default), self)) if isinstance(default, str):
strDefault = "'" + default + "'"
else:
strDefault = default
self.wOptionalArgs.append(QLineEdit(str(strDefault), self))
self.layout.addRow(str(arg), self.wOptionalArgs[-1]) self.layout.addRow(str(arg), self.wOptionalArgs[-1])
# make a QLineEdit for the args # make a QLineEdit for the args
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment