pushbase.scrollable_list_component¶
Classes¶
class ScrollableListComponent(Component)¶
Bases: Component
Attributes¶
num_segments = 8display_line = 3jump_size = 3ARROW_LEFT = ' << 'ARROW_RIGHT = ' >> 'option_namesselected_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