Sideband/sbapp/kivymd/uix/relativelayout.py

43 lines
994 B
Python
Raw Normal View History

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