template (xmlui): added values property to be able to use always values even when there is only one value

This commit is contained in:
Goffi 2017-10-01 12:21:23 +02:00
commit fa1680a119

View file

@ -49,6 +49,10 @@ class ValueWidget(Widget):
super(ValueWidget, self).__init__(xmlui_parent)
self.value = value
@property
def values(self):
return [self.value]
class InputWidget(ValueWidget):