def disabled(self, disabled): self.disabled = disabled send_to_device('ui', { 'element_id': self.id, 'update': {'disabled': disabled} })
def activated(self, activated): self._activated = activated send_to_device('ui', { 'element_id': self.id, 'update': {'activated': activated} })
def text(self, text): self._text = text send_to_device('ui', { 'element_id': self.id, 'update': {'text': text} })