Table Of Contents
SelectableView¶
バージョン 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)[ソース]¶ ベースクラス:
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)[ソース]¶ 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.
-