Version

Quick search

Table Of Contents

SelectableView

Deprecated since version 1.10.0: The feature has been deprecated.

This module houses the SelectableView mixin class. This is used by the ListView and it’s associated Adapters to provide selection behaviour when presenting large lists.

class kivy.uix.selectableview.SelectableView(**kwargs)[source]

Bases: builtins.object

The SelectableView mixin is used with list items and other classes that are to be instantiated in a list view or other classes which use a selection-enabled adapter such as ListAdapter. select() and deselect() can be overridden with display code to mark items as selected or not, if desired.

deselect(*args)[source]

The list item is responsible for updating the display when being unselected, if desired.

index

The index into the underlying data list or the data item this view represents.

is_selected

A SelectableView instance carries this property which should be kept in sync with the equivalent property the data item represents.

select(*args)[source]

The list item is responsible for updating the display when being selected, if desired.