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:
MDFadeSlideTransition
MDSlideTransition
MDSwapTransition
MDScreenManager
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
MDScreen
stack and memory.For more information, see in the
ScreenManager
class documentation.- current_hero#
The name of the current tag for the
MDHeroFrom
andMDHeroTo
objects that will be animated when animating the transition between screens.Deprecated since version 1.1.0: Use
current_heroes
attribute instead.See the Hero module documentation for more information about creating and using Hero animations.
current_hero
is anStringProperty
and 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_heroes
is anListProperty
and defaults to [].
- check_transition(self, *args)#
Sets the default type transition.
- get_hero_from_widget(self)#
Get a list of
MDHeroFrom
objects according to the tag names specified in thecurrent_heroes
list.
- on_current_hero(self, instance, value: str)#
Called when the value of the
current_hero
attribute changes.
- add_widget(self, widget, *args, **kwargs)#
Changed in version 2.1.0.
Renamed argument screen to widget.