pushbase.scrollable_list¶
Classes¶
class ScrollableListItem(object)¶
Bases: object
__init__(self, index, content, scrollable_list, *a, **k)¶
__str__(self)¶
content(self)¶
index(self)¶
container(self)¶
is_selected(self)¶
select(self)¶
class ScrollableList(EventObject, Scrollable)¶
Bases: EventObject, Scrollable
Attributes¶
item_typefixed_offset = Nonenum_visible_itemsselected_item_index
__init__(self, num_visible_items, item_type, *a, **k)¶
pager(self)¶
scroll_up(self)¶
can_scroll_up(self)¶
scroll_down(self)¶
can_scroll_down(self)¶
_get_num_visible_items(self)¶
_set_num_visible_items(self, num_items)¶
visible_items(self)¶
select_item_index_with_offset(self, index, offset)¶
select_item_index_with_border(self, index, border_size)¶
next_page(self)¶
prev_page(self)¶
_set_selected_item_index(self, index)¶
_get_selected_item_index(self)¶
_normalize_offset(self, index)¶
selected_item(self)¶
items(self)¶
assign_items(self, items)¶
select_item(self, item)¶
is_selected(self, item)¶
request_notify_item_activated(self)¶
_do_set_selected_item_index(self, index)¶
class ActionListItem(ScrollableListItem)¶
Bases: ScrollableListItem
Attributes¶
supports_action = False
action(self)¶
class ActionList(ScrollableList)¶
Bases: ScrollableList
Attributes¶
item_type
class DefaultItemFormatter(object)¶
Bases: object
Attributes¶
action_message = 'Loading...'
__call__(self, index, item, action_in_progress)¶
class ListComponent(Component)¶
Bases: Component
Attributes¶
SELECTION_DELAY = 0.5ENCODER_FACTOR = 10.0empty_list_message = ''_current_action_item = None_last_action_item = Nonescrollable_listselect_next_buttonselect_prev_buttonnext_page_buttonprev_page_button