# HG changeset patch # User Goffi # Date 1482264695 -3600 # Node ID a766c278b640484af1ab611c936c1ba73663655a # Parent b84dadbab62b259d18fd72f1d4653de7a7db82c9 xmlui: fixed BoolWidget _xmluiGetValue: _xmluiGetValue must return a string (it was returning a bool) diff -r b84dadbab62b -r a766c278b640 src/cagou/core/xmlui.py --- 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))