mirror of https://github.com/kivy/kivy.git
Fixed call to DetailView().
This commit is contained in:
parent
50d7ac1b2e
commit
cd0f045b75
|
@ -64,9 +64,7 @@ class CascadingView(GridLayout):
|
|||
|
||||
# Detail view, for a given fruit, on the right:
|
||||
#
|
||||
detail_view = DetailView(
|
||||
observed_list_adapter=fruits_list_adapter,
|
||||
size_hint=(.6, 1.0))
|
||||
detail_view = DetailView(size_hint=(.6, 1.0))
|
||||
fruits_list_adapter.bind(
|
||||
on_selection_change=detail_view.on_selection_change)
|
||||
self.add_widget(detail_view)
|
||||
|
|
|
@ -119,10 +119,8 @@ class ListAdapter(SelectionSupport, SimpleListAdapter):
|
|||
if v is not None:
|
||||
print 'selecting first data item view', v, v.is_selected
|
||||
self.handle_selection(v)
|
||||
#else:
|
||||
#print 'ERROR: No data, so cannot initialize selection.'
|
||||
|
||||
def touch_selection(self):
|
||||
def touch_selection(self, *args):
|
||||
self.dispatch('on_selection_change')
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue