def _update_exit_button(self): button = self._on_exit_value.subject if self.is_enabled() and button: with disconnectable(self._make_exit_node()) as node: if node: button.set_light(button.is_pressed()) else: button.set_light('DefaultButton.Disabled')
def _update_enter_button(self): button = self._on_enter_value.subject if self.is_enabled() and button: with disconnectable(self._make_enter_node()) as node: button.set_light(node or 'DefaultButton.Disabled')