ScreenManager#
New in version 1.0.0. You need to use the ScreenManager class equivalent.
If you want to use Hero animations you need to use
MDScreenManager not
ScreenManager class.Transition#
MDScreenManager class supports the following
transitions:
MDFadeSlideTransitionMDSlideTransitionMDSwapTransitionMDScreenManager class
when you want to use hero animations on your screens. If you don’t need hero
animation use the ScreenManager class.
API - kivymd.uix.screenmanager#
- class kivymd.uix.screenmanager.MDScreenManager(*args, **kwargs)#
Screen manager. This is the main class that will control your
MDScreenstack and memory.For more information, see in the
ScreenManagerclass documentation.- current_hero#
The name of the current tag for the
MDHeroFromandMDHeroToobjects that will be animated when animating the transition between screens.Deprecated since version 1.1.0: Use
current_heroesattribute instead.See the Hero module documentation for more information about creating and using Hero animations.
current_herois anStringPropertyand defaults to None.
- current_heroes#
A list of names (tags) of heroes that need to be animated when moving to the next screen.
New in version 1.1.0.
current_heroesis anListPropertyand defaults to [].
- check_transition(self, *args)#
Sets the default type transition.
- get_hero_from_widget(self)#
Get a list of
MDHeroFromobjects according to the tag names specified in thecurrent_heroeslist.
- on_current_hero(self, instance, value: str)#
Called when the value of the
current_heroattribute changes.
- add_widget(self, widget, *args, **kwargs)#
Changed in version 2.1.0.
Renamed argument screen to widget.