2022-07-07 16:16:10 -04:00
|
|
|
"""
|
|
|
|
Components/FloatLayout
|
|
|
|
======================
|
|
|
|
|
|
|
|
:class:`~kivy.uix.floatlayout.FloatLayout` class equivalent. Simplifies working
|
|
|
|
with some widget properties. For example:
|
|
|
|
|
|
|
|
FloatLayout
|
|
|
|
-----------
|
|
|
|
|
2022-10-02 11:16:59 -04:00
|
|
|
.. code-block:: kv
|
2022-07-07 16:16:10 -04:00
|
|
|
|
|
|
|
FloatLayout:
|
|
|
|
canvas:
|
|
|
|
Color:
|
|
|
|
rgba: app.theme_cls.primary_color
|
|
|
|
RoundedRectangle:
|
|
|
|
pos: self.pos
|
|
|
|
size: self.size
|
|
|
|
radius: [25, 0, 0, 0]
|
|
|
|
|
|
|
|
MDFloatLayout
|
|
|
|
-------------
|
|
|
|
|
2022-10-02 11:16:59 -04:00
|
|
|
.. code-block:: kv
|
2022-07-07 16:16:10 -04:00
|
|
|
|
|
|
|
MDFloatLayout:
|
|
|
|
radius: [25, 0, 0, 0]
|
|
|
|
md_bg_color: app.theme_cls.primary_color
|
|
|
|
|
|
|
|
.. Warning:: For a :class:`~kivy.uix.floatlayout.FloatLayout`, the
|
|
|
|
``minimum_size`` attributes are always 0, so you cannot use
|
|
|
|
``adaptive_size`` and related options.
|
|
|
|
"""
|
|
|
|
|
|
|
|
from kivy.uix.floatlayout import FloatLayout
|
|
|
|
|
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 MDFloatLayout(
|
|
|
|
DeclarativeBehavior, ThemableBehavior, FloatLayout, MDAdaptiveWidget
|
|
|
|
):
|
2022-10-02 11:16:59 -04:00
|
|
|
"""
|
|
|
|
Float layout class. For more information, see in the
|
|
|
|
:class:`~kivy.uix.floatlayout.FloatLayout` class documentation.
|
|
|
|
"""
|