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