comparison 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
comparison
equal deleted inserted replaced
75:b84dadbab62b 76:a766c278b640
247 247
248 def _xmluiSetValue(self, value): 248 def _xmluiSetValue(self, value):
249 self.active = value 249 self.active = value
250 250
251 def _xmluiGetValue(self): 251 def _xmluiGetValue(self):
252 return self.active 252 return C.BOOL_TRUE if self.active else C.BOOL_FALSE
253 253
254 def _xmluiOnChange(self, callback): 254 def _xmluiOnChange(self, callback):
255 self.bind(active=lambda instance, value: callback(instance)) 255 self.bind(active=lambda instance, value: callback(instance))
256 256
257 257