Mathieu Virbel
|
f2ae15c6ec
|
py3: fix few more print
|
2013-05-31 11:12:21 +02:00 |
geojeff
|
0f1ea4a82e
|
Commented out several print lines in examples.
|
2013-04-17 21:18:10 -05:00 |
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 |
geojeff
|
254497d07b
|
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 |
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
|
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 |
Jeff Pittman
|
107814ed3d
|
Restored list_cascade_setter.py. Fixed comments about custom list adapter vs. using a setter-type binding.
|
2012-08-06 15:58:49 -05:00 |
Jeff Pittman
|
e51da87134
|
Added allownone=True for obj in ObjectAdapter, and for fruit_name in the list cascade examples, and modified the detail view variants in the list examples to clear widgets and redraw if the the selected fruit is None.
|
2012-08-04 05:28:53 -05:00 |
Jeff Pittman
|
0d29acae75
|
Added two new classes, ObjectAdapter and ObserverView, which work together in a fashion similar to the way ListAdapter and ListView work. ObjectAdapter can be used to hold the selection of a ListAdapter. ObserverView is a view associated with this relationship, as showin the the list_cascade_oo.py example. The detail view on the right is an ObserverView, showing the view associated with the ObjectAdapter instance observing the fruit selection.
|
2012-08-03 17:50:22 -05:00 |
Jeff Pittman
|
ea7ce02a89
|
Removed the experiment with ButtonBehavior. Worked over bindings and events widely. Realized the place to put the call to check_for_empty_selection(), as things are now, is at the bottom of listview.hard_populate(). Cleaned up all of the examples for the changes.
|
2012-08-02 20:53:41 -05:00 |