Mercurial > libervia-desktop-kivy
diff src/cagou/core/xmlui.py @ 76:a766c278b640
xmlui: fixed BoolWidget _xmluiGetValue:
_xmluiGetValue must return a string (it was returning a bool)
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 20 Dec 2016 21:11:35 +0100 |
parents | 8c9fe2c5aacc |
children | f67b9baa81f0 |
line wrap: on
line diff
--- a/src/cagou/core/xmlui.py Tue Dec 20 21:10:53 2016 +0100 +++ b/src/cagou/core/xmlui.py Tue Dec 20 21:11:35 2016 +0100 @@ -249,7 +249,7 @@ self.active = value def _xmluiGetValue(self): - return self.active + return C.BOOL_TRUE if self.active else C.BOOL_FALSE def _xmluiOnChange(self, callback): self.bind(active=lambda instance, value: callback(instance))