mirror of
https://github.com/markqvist/Sideband.git
synced 2024-12-12 09:24:34 -05:00
46 lines
863 B
Python
46 lines
863 B
Python
"""
|
|
Components/Widget
|
|
=================
|
|
|
|
:class:`~kivy.uix.widget.Widget` class equivalent. Simplifies working
|
|
with some widget properties. For example:
|
|
|
|
Widget
|
|
------
|
|
|
|
.. code-block::
|
|
|
|
Widget:
|
|
size_hint: .5, None
|
|
height: self.width
|
|
|
|
canvas:
|
|
Color:
|
|
rgba: app.theme_cls.primary_color
|
|
RoundedRectangle:
|
|
pos: self.pos
|
|
size: self.size
|
|
radius: [self.height / 2,]
|
|
|
|
MDWidget
|
|
--------
|
|
|
|
.. code-block::
|
|
|
|
MDWidget:
|
|
size_hint: .5, None
|
|
height: self.width
|
|
radius: self.height / 2
|
|
md_bg_color: app.theme_cls.primary_color
|
|
"""
|
|
|
|
from kivymd.uix import MDAdaptiveWidget
|
|
|
|
|
|
class MDWidget(MDAdaptiveWidget):
|
|
"""
|
|
See :class:`~kivy.uix.Widget` class documentation for more information.
|
|
|
|
.. versionadded:: 1.0.0
|
|
"""
|