kivy/examples/widgets/lists
geojeff d71a83cc06 Added a list example that illustrates adding and changing data on a timer. 2013-02-12 16:29:16 -06:00
..
fruit_images Added thumbnail images for fruits, all from wikipedia.org. 2012-08-02 04:29:41 -05:00
README.md Removed notes from examples readme. 2012-10-23 14:04:45 -05:00
fixtures.py Changed ListAdapter to work with lists, removing complexity for having data as strings and a separate datastore. Removed DataStore and concept, and replaced with a new adapter, DictAdapter, that works straight with dicts. Updated examples and tests for changes. 2012-08-13 13:42:40 -05:00
fruit_detail_view.py Changed arguments checking in ListView to account for possible use of kv in the definition of a ListView. Added several new examples and tests, and new entries in ListView docs. Also deleted ObserverView, which is not used anywhere. The pre-commit hook was not allowing this commit, because a file was deleted and the style check failed to find it. So, modified the pre-commit hook to use a different method to find staged files. 2012-12-16 10:52:41 -06:00
list_cascade.py Changed args_converter to take row_index as first argument. Fixed the list_two_up.py example, which needed explicit set to sorted_keys. 2012-12-09 08:28:09 -06:00
list_cascade_dict.py Changed args_converter to take row_index as first argument. Fixed the list_two_up.py example, which needed explicit set to sorted_keys. 2012-12-09 08:28:09 -06:00
list_cascade_images.py Changed args_converter to take row_index as first argument. Fixed the list_two_up.py example, which needed explicit set to sorted_keys. 2012-12-09 08:28:09 -06:00
list_composite.py Changed args_converter to take row_index as first argument. Fixed the list_two_up.py example, which needed explicit set to sorted_keys. 2012-12-09 08:28:09 -06:00
list_kv.py Changed args_converter to take row_index as first argument. Fixed the list_two_up.py example, which needed explicit set to sorted_keys. 2012-12-09 08:28:09 -06:00
list_master_detail.py Changed args_converter to take row_index as first argument. Fixed the list_two_up.py example, which needed explicit set to sorted_keys. 2012-12-09 08:28:09 -06:00
list_ops.py Changed args_converter to take row_index as first argument. Fixed the list_two_up.py example, which needed explicit set to sorted_keys. 2012-12-09 08:28:09 -06:00
list_reset_data.py Added a list example that illustrates adding and changing data on a timer. 2013-02-12 16:29:16 -06:00
list_simple.py Made a pass through listview docs, adjusting for recent changes. 2012-08-02 22:34:18 -05:00
list_simple_in_kv.py Changed arguments checking in ListView to account for possible use of kv in the definition of a ListView. Added several new examples and tests, and new entries in ListView docs. Also deleted ObserverView, which is not used anywhere. The pre-commit hook was not allowing this commit, because a file was deleted and the style check failed to find it. So, modified the pre-commit hook to use a different method to find staged files. 2012-12-16 10:52:41 -06:00
list_simple_in_kv_2.py Changed arguments checking in ListView to account for possible use of kv in the definition of a ListView. Added several new examples and tests, and new entries in ListView docs. Also deleted ObserverView, which is not used anywhere. The pre-commit hook was not allowing this commit, because a file was deleted and the style check failed to find it. So, modified the pre-commit hook to use a different method to find staged files. 2012-12-16 10:52:41 -06:00
list_two_up.py Changed args_converter to take row_index as first argument. Fixed the list_two_up.py example, which needed explicit set to sorted_keys. 2012-12-09 08:28:09 -06:00

README.md

Programming for lists is a common task in a wide variety of applications. An attempt is made here to present a good set of samples.

These include:

- list_simple.py -- The simplest of examples, using the simplest list
                    adapter, :class:`SimpleListAdapter`. Only the names of
                    the fruits in the fixtures data are used to make list
                    item view instances from a custom class. There is no
                    selection -- it is a bare-bones list of strings.

- list_cascade.py -- Fruit categories on the left, fruit selection within
                     a fruit category in the middle, and a fruit detail
                     view on the right. Selection cascades from left to
                     right, from the category selection, to the fruit
                     selection, to the detail view.

                     The list views use :class:`ListAdapter` and a custom
                     subclass of :class:`ListItemButton` for the list
                     item class. Data for fruits comes from a fixtures.py
                     file that is used in several of the examples.

- list_cascade_dict.py -- Exactly the same layout and functionality as
                          list_cascade.py, except the list views use
                          :class:`DictAdapter` and the fixtures data is
                          used in an appropriate way for dictionaries.

- list_cascade_images.py -- Same as the list_cascade_dict.py example, but
                            with thumbnail images of fruits shown in
                            custom list item view class instances, and in
                            the detail view.

- list_master_detail.py -- Uses a :class:`DictAdapter`. Simpler than the
                           cascade examples. Illustrates use of the terms.

- list_kv.py -- A simple example to show use of a kv template.

- list_composite.py -- Uses :class:`CompositeListItem` for list item views
                       comprised by two :class:`ListItemButton`s and one
                       :class:`ListItemLabel`. Illustrates how to construct
                       the fairly involved args_converter used with
                       :class:`CompositeListItem`.

- list_two_up -- Presents two list views, each using :class:`DictAdapter`.
                 list view on the left is configured for multiple
                 selection. As selection changes in the left list, the
                 selected items form the content for the list on the
                 right, which is constantly updated.

- list_ops.py -- Seven list views are shown at the bottom, each focusing
                 on one of the available operations for list
                 adapters: scroll_to, trim_to_sel, trim_left_of_sel, etc.
                 At the top is a display that shows individual items
                 selected across the seven lists, along with a total of
                 all selected items for the lists.