mirror of
https://github.com/markqvist/Sideband.git
synced 2024-10-01 03:15:37 -04:00
50 lines
948 B
Python
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.
|
||
|
"""
|