mirror of
https://github.com/liberatedsystems/openCom-Companion.git
synced 2024-11-24 06:10:36 +01: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.
|
||
|
"""
|