Skip to content

ableton.v2.control_surface.components.item_lister

Classes

class SimpleItemSlot(EventObject)

Bases: EventObject

Attributes

  • _SimpleItemSlot__on_name_changed
  • _SimpleItemSlot__on_color_index_changed

__init__(self, item, name, nesting_level, *a, **k)

name(self)

item(self)

nesting_level(self)

color_index(self)

__on_name_changed(self)

__on_color_index_changed(self)

class ItemSlot(SimpleItemSlot)

Bases: SimpleItemSlot

Attributes

  • _live_ptr

__init__(self, item, nesting_level, **k)

__eq__(self, other)

__ne__(self, other)

__hash__(self)

class ItemProvider(EventObject)

Bases: EventObject

items(self)

selected_item(self)

class ItemListerComponentBase(Component)

Bases: Component

Attributes

  • _ItemListerComponentBase__on_items_changed

__init__(self, item_provider, num_visible_items, *a, **k)

reset_offset(self)

items(self)

item_provider(self)

item_offset(self)

item_offset(self, offset)

can_scroll_left(self)

can_scroll_right(self)

scroll_left(self)

scroll_right(self)

_adjust_offset(self)

update_items(self)

_create_slots(self)

_create_slot(self, index, item, nesting_level)

__on_items_changed(self)

_on_items_changed(self)

class ScrollComponent(Component)

Bases: Component

button(self, button)

class ScrollOverlayComponent(Component)

Bases: Component

Attributes

  • scroll_left_layer
  • scroll_right_layer
  • _ScrollOverlayComponent__on_scroll_left
  • _ScrollOverlayComponent__on_scroll_right

__init__(self, *a, **k)

can_scroll_left(self)

can_scroll_right(self)

scroll_left(self)

scroll_right(self)

update_scroll_buttons(self)

__on_scroll_left(self)

__on_scroll_right(self)

update(self)

class ItemListerComponent(ItemListerComponentBase)

Bases: ItemListerComponentBase

Attributes

  • color_class_name = 'ItemNavigation'
  • scroll_left_layer
  • scroll_right_layer
  • _ItemListerComponent__on_items_changed
  • _ItemListerComponent__on_selection_changed

__init__(self, *a, **k)

__on_items_changed(self)

__on_selection_changed(self)

_on_selection_changed(self)

_items_equal(self, item, selected_item)

_update_button_colors(self)

_color_for_button(self, button_index, is_selected)

select_buttons(self, button)

select_buttons(self, button)

select_buttons(self, button)

select_buttons(self, button)

_on_select_button_pressed(self, button)

_on_select_button_pressed_delayed(self, button)

_on_select_button_released(self, button)

_on_select_button_released_immediately(self, button)