openCom-Companion/sbapp/kivymd/uix/scrollview.py
2022-10-02 17:16:59 +02:00

50 lines
948 B
Python

"""
Components/ScrollView
=====================
.. versionadded:: 1.0.0
:class:`~kivy.uix.scrollview.ScrollView` class equivalent. Simplifies working
with some widget properties. For example:
ScrollView
----------
.. code-block:: kv
ScrollView:
canvas:
Color:
rgba: app.theme_cls.primary_color
Rectangle:
pos: self.pos
size: self.size
MDScrollView
------------
.. code-block:: kv
MDScrollView:
md_bg_color: app.theme_cls.primary_color
"""
__all__ = ("MDScrollView",)
from kivy.uix.scrollview import ScrollView
from kivymd.uix.behaviors import (
DeclarativeBehavior,
SpecificBackgroundColorBehavior,
)
class MDScrollView(
DeclarativeBehavior, SpecificBackgroundColorBehavior, ScrollView
):
"""
ScrollView class. For more information, see in the
:class:`~kivy.uix.scrollview.ScrollView` class documentation.
"""