Skip to content

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_type
  • fixed_offset = None
  • num_visible_items
  • selected_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.5
  • ENCODER_FACTOR = 10.0
  • empty_list_message = ''
  • _current_action_item = None
  • _last_action_item = None
  • scrollable_list
  • select_next_button
  • select_prev_button
  • next_page_button
  • prev_page_button

__init__(self, scrollable_list, data_sources, *a, **k)

_trigger_action_on_scrolling(self)

_get_scrollable_list(self)

_set_scrollable_list(self, new_list)

set_data_sources(self, sources)

on_enabled_changed(self)

_on_scroll(self)

_on_selected_item_changed(self)

encoders(self, value, encoder)

_add_offset_to_selected_index(self, offset)

action_button(self, button)

do_trigger_action(self, item)

_trigger_action(self, item)

_execute_action(self)

selected_item(self)

next_item(self)

_can_be_used_for_action(self, item)

_action_target_is_next_item(self)

_update_action_feedback(self)

_update_display(self)

update(self)