Commit Graph

7 Commits

Author SHA1 Message Date
geojeff 5715cc4b7c Fixed the examples using fruit data, for a recent change to the way __repr__ in ListItemButton and friends works (should just use item.text anyway. 2013-04-17 21:15:03 -05:00
Mathieu Virbel e13d1e0ecf listview: remove all size_hint of 1., 1. (that's the widget default), and fix one typo in an doc example 2013-04-11 17:49:04 +02:00
geojeff 60bc7ddf23 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
geojeff 3f76ea8d3a Added tests toward full coverage, revealing bugs in code that had never been reached. Simplified several parts of the API. Merged CollectionAdapter into ListAdapter, so now it goes: Adpater -> SimpleListAdapter, Adapter -> ListAdapter -> DictAdapter, with selection in ListAdapter, and DictAdapter. 2012-10-23 13:20:27 -05:00
Jeff Pittman 22bf61f6f2 Evened out docs for examples. 2012-08-18 04:58:43 -05:00
Jeff Pittman e56cf56279 Added a base class called CollectionAdapter, with subclasses ListAdapter and DictAdapter. Added the start of trim, cut, and scroll_to methods in these adapters. Tried various combinations of examples and tests for working with sorted_keys and data in DictAdapter, settling down on bindings firing selection updates and refreshes that are stabilizing. Added a list_ops.py example showing use of the new trim, cut, and scroll_to methods, and also ways to use AliasAdapter and binding to a property setter. Removed ObjectAdapter and ObserverView, in part because of working out the approaches shown in list_ops.py, and also because it is better to take a fresh try at these classes if desired in the future. 2012-08-17 12:20:08 -05:00
Jeff Pittman 0a4e96fda9 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