def extract(self): value, error = WidgetExtractor.extract(self) if value == 'True': value = True else: value = False return (value, error)
def extract(self): value, error = WidgetExtractor.extract(self) if value == 'selected': return True, None return False, None