Sideband/sbapp/kivymd/uix/recycleview.py

49 lines
1008 B
Python
Raw Normal View History

2022-10-02 09:16:59 -06:00
"""
Components/RecycleView
======================
.. versionadded:: 1.0.0
:class:`~kivy.uix.recycleview.RecycleView` class equivalent. Simplifies working
with some widget properties. For example:
RecycleView
-----------
.. code-block:: kv
RecycleView:
canvas:
Color:
rgba: app.theme_cls.primary_color
Rectangle:
pos: self.pos
size: self.size
MDRecycleView
-------------
.. code-block:: kv
MDRecycleView:
md_bg_color: app.theme_cls.primary_color
"""
__all__ = ("MDRecycleView",)
from kivy.uix.recycleview import RecycleView
2023-07-09 18:49:58 -06:00
from kivymd.theming import ThemableBehavior
from kivymd.uix import MDAdaptiveWidget
2022-10-02 09:16:59 -06:00
from kivymd.uix.behaviors import DeclarativeBehavior
2023-07-09 18:49:58 -06:00
class MDRecycleView(
DeclarativeBehavior, ThemableBehavior, RecycleView, MDAdaptiveWidget
):
2022-10-02 09:16:59 -06:00
"""
Recycle view class. For more information, see in the
:class:`~kivy.uix.recycleview.RecycleView` class documentation.
"""