Skip to content

pushbase.scrollable_list_component

Classes

class ScrollableListComponent(Component)

Bases: Component

Attributes

  • num_segments = 8
  • display_line = 3
  • jump_size = 3
  • ARROW_LEFT = ' << '
  • ARROW_RIGHT = ' >> '
  • option_names
  • selected_option

__init__(self, *a, **k)

set_display_line(self, line)

set_select_buttons(self, buttons)

offset_index(self)

scroll_right(self)

scroll_left(self)

_get_option_names(self)

_set_option_names(self, names)

_get_selected_option(self)

_set_selected_option(self, selected_option)

_has_select_button(self, index)

_maximal_offset(self)

_normalize_offset(self)

_scroll(self, delta)

_on_select_value(self, value, sender)

_get_display_string(self, option_index)

update(self)

class ScrollableListWithTogglesComponent(ScrollableListComponent)

Bases: ScrollableListComponent

__init__(self, *a, **k)

set_state_buttons(self, state_buttons)

option_state(self, index)

set_option_state(self, index, value)

_on_state_button_value(self, index, value)

_set_option_names(self, names)

update(self)

_update_state_buttons(self)