From cd7febcbf8bd9d8869419ac8decbbf54c2e754d5 Mon Sep 17 00:00:00 2001 From: Jeff Pittman Date: Wed, 1 Aug 2012 11:34:26 -0500 Subject: [PATCH] Improved the kv example docs comment. --- examples/widgets/lists/list_kv.py | 13 +++++++------ kivy/uix/listview.py | 13 +++++++------ 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/examples/widgets/lists/list_kv.py b/examples/widgets/lists/list_kv.py index 7121d6e5f..308dcff03 100644 --- a/examples/widgets/lists/list_kv.py +++ b/examples/widgets/lists/list_kv.py @@ -24,13 +24,14 @@ class MainView(GridLayout): super(MainView, self).__init__(**kwargs) # Here we create a list adapter with some item strings, passing our - # CompositeListItemTemplate for the list item view, and then we + # CompositeListItem kv template for the list item view, and then we # create a list view using this adapter. As we have not provided an - # args converter, the default will be used. It will create, per - # list item, an args dict with the text set to the data item (in - # this case a string label for an integer index), and two default - # properties: size_hint_y=None and height=25. To customize, make - # your own args converter and/or customize the kv template. + # args converter to the list adapter, the default args converter + # will be used. It creates, per list item, an args dict with the + # text set to the data item (in this case a string label for an + # integer index), and two default properties: size_hint_y=None and + # height=25. To customize, make your own args converter and/or + # customize the kv template. list_adapter = ListAdapter(data=[str(i) for i in xrange(100)], template='CustomListItem') list_view = ListView(adapter=list_adapter) diff --git a/kivy/uix/listview.py b/kivy/uix/listview.py index 82fb63345..0c4bb6651 100644 --- a/kivy/uix/listview.py +++ b/kivy/uix/listview.py @@ -229,13 +229,14 @@ To make a simple list with labels for 100 integers: super(MainView, self).__init__(**kwargs) # Here we create a list adapter with some item strings, passing our - # CompositeListItemTemplate for the list item view, and then we + # CompositeListItem kv template for the list item view, and then we # create a list view using this adapter. As we have not provided an - # args converter, the default will be used. It will create, per - # list item, an args dict with the text set to the data item (in - # this case a string label for an integer index), and two default - # properties: size_hint_y=None and height=25. To customize, make - # your own args converter and/or customize the kv template. + # args converter to the list adapter, the default args converter + # will be used. It creates, per list item, an args dict with the + # text set to the data item (in this case a string label for an + # integer index), and two default properties: size_hint_y=None and + # height=25. To customize, make your own args converter and/or + # customize the kv template. list_adapter = ListAdapter(data=[str(i) for i in xrange(100)], template='CustomListItem') list_view = ListView(adapter=list_adapter)