Skip to content

_Framework.ToggleComponent

Classes

class ToggleComponent(ControlSurfaceComponent)

Bases: ControlSurfaceComponent

Attributes

  • is_private = True
  • is_momentary = False
  • read_only = False
  • subject
  • value

__init__(self, property_name, subject, is_momentary, model_transform, view_transform, read_only, *a, **k)

model_transform(self, value)

view_transform(self, value)

_get_subject(self)

_set_subject(self, model)

_get_value(self)

_set_value(self, value)

set_toggle_button(self, button)

on_enabled_changed(self)

update(self)

_update_button(self)

_on_property_changed_in_model(self)

_on_button_value(self, value)