Skip to content

Commit 182dc22

Browse files
committed
doc: added header for recycleview/layout.py
And pep8 stuff
1 parent b330815 commit 182dc22

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

kivy/uix/recycleview/layout.py

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
1+
'''
2+
RecycleView Layouts
3+
===================
14
5+
The Layouts handle the presentaiton of views for the
6+
:class:`~kivy.uix.recycleview.RecycleView`.
7+
8+
.. warning::
9+
This module is highly experimental, its API may change in the future and
10+
the documentation is not complete at this time.
11+
'''
212
from kivy.compat import string_types
313
from kivy.factory import Factory
414
from kivy.properties import StringProperty, ObjectProperty
@@ -124,7 +134,8 @@ def apply_selection(self, index, view, is_selected):
124134
'''
125135
viewclass = view.__class__
126136
if viewclass not in _view_base_cache:
127-
_view_base_cache[viewclass] = isinstance(view, RecycleDataViewBehavior)
137+
_view_base_cache[viewclass] = isinstance(view,
138+
RecycleDataViewBehavior)
128139

129140
if _view_base_cache[viewclass]:
130141
view.apply_selection(self.recycleview, index, is_selected)
@@ -137,10 +148,10 @@ def refresh_view_layout(self, index, pos, pos_hint, size, size_hint, view,
137148

138149

139150
class RecycleLayoutManagerBehavior(object):
140-
"""A RecycleLayoutManagerBehavior is responsible for positioning views into the
141-
:attr:`RecycleView.data` within a :class:`RecycleView`. It adds new views
142-
into the data when it becomes visible to the user, and removes them when
143-
they leave the visible area.
151+
"""A RecycleLayoutManagerBehavior is responsible for positioning views into
152+
the :attr:`RecycleView.data` within a :class:`RecycleView`. It adds new
153+
views into the data when it becomes visible to the user, and removes them
154+
when they leave the visible area.
144155
"""
145156

146157
viewclass = ObjectProperty(None)

0 commit comments

Comments
 (0)