Sideband_CE/sbapp/kivymd/uix/relativelayout.py

46 lines
1.0 KiB
Python
Raw Permalink Normal View History

2022-07-07 22:16:10 +02:00
"""
Components/RelativeLayout
=========================
2022-10-02 17:16:59 +02:00
:class:`~kivy.uix.relativelayout.RelativeLayout` class equivalent.
Simplifies working with some widget properties. For example:
2022-07-07 22:16:10 +02:00
RelativeLayout
--------------
2022-10-02 17:16:59 +02:00
.. code-block:: kv
2022-07-07 22:16:10 +02:00
RelativeLayout:
canvas:
Color:
rgba: app.theme_cls.primary_color
RoundedRectangle:
pos: (0, 0)
size: self.size
radius: [25, ]
MDRelativeLayout
----------------
2022-10-02 17:16:59 +02:00
.. code-block:: kv
2022-07-07 22:16:10 +02:00
MDRelativeLayout:
radius: [25, ]
md_bg_color: app.theme_cls.primary_color
"""
from kivy.uix.relativelayout import RelativeLayout
2023-07-10 02:49:58 +02:00
from kivymd.theming import ThemableBehavior
2022-07-07 22:16:10 +02:00
from kivymd.uix import MDAdaptiveWidget
2022-10-02 17:16:59 +02:00
from kivymd.uix.behaviors import DeclarativeBehavior
2022-07-07 22:16:10 +02:00
2023-07-10 02:49:58 +02:00
class MDRelativeLayout(
DeclarativeBehavior, ThemableBehavior, RelativeLayout, MDAdaptiveWidget
):
2022-10-02 17:16:59 +02:00
"""
Relative layout class. For more information, see in the
:class:`~kivy.uix.relativelayout.RelativeLayout` class documentation.
"""