Mercurial > libervia-desktop-kivy
changeset 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 | b84dadbab62b |
children | bc170ccca744 |
files | src/cagou/core/xmlui.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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))