mirror of
https://github.com/liberatedsystems/Sideband_CE.git
synced 2024-09-03 04:13:27 +02:00
39 lines
773 B
Python
39 lines
773 B
Python
|
"""
|
||
|
Components/RelativeLayout
|
||
|
=========================
|
||
|
|
||
|
:class:`~kivy.uix.relativelayout.RelativeLayout` class equivalent. Simplifies working
|
||
|
with some widget properties. For example:
|
||
|
|
||
|
RelativeLayout
|
||
|
--------------
|
||
|
|
||
|
.. code-block::
|
||
|
|
||
|
RelativeLayout:
|
||
|
canvas:
|
||
|
Color:
|
||
|
rgba: app.theme_cls.primary_color
|
||
|
RoundedRectangle:
|
||
|
pos: (0, 0)
|
||
|
size: self.size
|
||
|
radius: [25, ]
|
||
|
|
||
|
MDRelativeLayout
|
||
|
----------------
|
||
|
|
||
|
.. code-block::
|
||
|
|
||
|
MDRelativeLayout:
|
||
|
radius: [25, ]
|
||
|
md_bg_color: app.theme_cls.primary_color
|
||
|
"""
|
||
|
|
||
|
from kivy.uix.relativelayout import RelativeLayout
|
||
|
|
||
|
from kivymd.uix import MDAdaptiveWidget
|
||
|
|
||
|
|
||
|
class MDRelativeLayout(RelativeLayout, MDAdaptiveWidget):
|
||
|
pass
|