Widget#
#
Widget
class equivalent. Simplifies working
with some widget properties. For example:
Widget#
Widget:
size_hint: .5, None
height: self.width
canvas:
Color:
rgba: app.theme_cls.primaryColor
RoundedRectangle:
pos: self.pos
size: self.size
radius: [self.height / 2,]
MDWidget#
MDWidget:
size_hint: .5, None
height: self.width
radius: self.height / 2
md_bg_color: app.theme_cls.primaryColor
API - kivymd.uix.widget
#
- class kivymd.uix.widget.MDWidget(*args, **kwargs)#
Widget class.
For more information, see in the
DeclarativeBehavior
andThemableBehavior
andBackgroundColorBehavior
andMDAdaptiveWidget
andWidget
and classes documentation.New in version 1.0.0.