Added user interface default value

This commit is contained in:
Adolfo Gómez García 2022-10-17 13:51:35 +02:00
parent 4f4f1f24fd
commit d2cb4356f0
No known key found for this signature in database
GPG Key ID: DD1ABF20724CDA23

View File

@ -267,7 +267,7 @@ class gui:
def __init__(self, **options) -> None:
# Added defaultValue as alias for defvalue
defvalue = options.get('defvalue', options.get('defaultValue', ''))
defvalue = options.get('defvalue', options.get('defaultValue', options.get('defValue', '')))
if callable(defvalue):
defvalue = defvalue()
self._data = {