ableton.v2.control_surface.control.button¶
Classes¶
class DoubleClickContext(object)¶
Bases: object
Attributes¶
control_state = Noneclick_count = 0
set_new_context(self, control_state)¶
class ButtonControlBase(InputControl)¶
Bases: InputControl
Attributes¶
DELAY_TIMEDOUBLE_CLICK_TIMEREPEAT_RATE = 0.1pressedreleasedpressed_delayedreleased_delayedreleased_immediatelydouble_clicked
__init__(self, *a, **k)¶
class State(InputControl.State)¶
Bases: InputControl.State
Attributes¶
disabled_colorpressed_color
__init__(self, pressed_color, disabled_color, repeat, enabled, double_click_context, delay_time, *a, **k)¶
enabled(self)¶
enabled(self, enabled)¶
is_momentary(self)¶
is_pressed(self)¶
_event_listener_required(self)¶
set_control_element(self, control_element)¶
_send_current_color(self)¶
_send_button_color(self)¶
_on_value(self, value, *a, **k)¶
_press_button(self)¶
_on_pressed(self)¶
_release_button(self)¶
_on_released(self)¶
_check_double_click_press(self)¶
_check_double_click_release(self)¶
set_double_click_context(self, context)¶
_delay_task(self)¶
_repeat_task(self)¶
_kill_all_tasks(self)¶
_double_click_task(self)¶
_has_delayed_event(self)¶
_on_pressed_delayed(self)¶
update(self)¶
class ButtonControl(ButtonControlBase)¶
Bases: ButtonControlBase
class State(ButtonControlBase.State)¶
Bases: ButtonControlBase.State
Attributes¶
color
__init__(self, color, *a, **k)¶
_send_button_color(self)¶
class PlayableControl(ButtonControl)¶
Bases: ButtonControl
class Mode(int)¶
Bases: int
class State(ButtonControl.State)¶
Bases: ButtonControl.State