Screen#

Screen class equivalent. Simplifies working with some widget properties. For example:

Screen#

Screen:
    canvas:
        Color:
            rgba: app.theme_cls.primary_color
        RoundedRectangle:
            pos: self.pos
            size: self.size
            radius: [25, 0, 0, 0]

MDScreen#

MDScreen:
    radius: [25, 0, 0, 0]
    md_bg_color: app.theme_cls.primary_color

API - kivymd.uix.screen#

class kivymd.uix.screen.MDScreen(*args, **kwargs)#

Screen is an element intended to be used with a MDScreenManager. For more information, see in the Screen class documentation.

hero_to#

Must be a MDHeroTo class.

See the documentation of the MDHeroTo widget for more detailed information.

Deprecated since version 1.0.0: Use attr:heroes_to attribute instead.

hero_to is an ObjectProperty and defaults to None.

heroes_to#

Must be a list of MDHeroTo class.

New in version 1.0.0.

heroes_to is an LiatProperty and defaults to [].

on_hero_to(self, screen, widget: MDHeroTo)#

Called when the value of the hero_to attribute changes.