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(**kw)

Screen is an element intended to be used with a ScreenManager. Check module documentation for more information.

Events
on_pre_enter: ()

Event fired when the screen is about to be used: the entering animation is started.

on_enter: ()

Event fired when the screen is displayed: the entering animation is complete.

on_pre_leave: ()

Event fired when the screen is about to be removed: the leaving animation is started.

on_leave: ()

Event fired when the screen is removed: the leaving animation is finished.

Changed in version 1.6.0: Events on_pre_enter, on_enter, on_pre_leave and on_leave were added.