carbonkivy.uix.screenmanager.screenmanager

Classes

CScreenManager

Screen manager. This is the main class that will control your

Module Contents

class carbonkivy.uix.screenmanager.screenmanager.CScreenManager(**kwargs)[source]

Bases: carbonkivy.behaviors.BackgroundColorBehaviorRectangular, kivy.uix.screenmanager.ScreenManager, carbonkivy.behaviors.DeclarativeBehavior

Screen manager. This is the main class that will control your Screen stack and memory.

By default, the manager will show only one screen at a time.

transition[source]

Transition object to use for animating the transition from the current screen to the next one being shown.

For example, if you want to use a WipeTransition between slides:

from kivy.uix.screenmanager import ScreenManager, Screen,
WipeTransition

sm = ScreenManager(transition=WipeTransition())
sm.add_widget(Screen(name='first'))
sm.add_widget(Screen(name='second'))

# by default, the first added screen will be shown. If you want to
# show another one, just set the 'current' property.
sm.current = 'second'

transition is an ObjectProperty and defaults to a SlideTransition.

Changed in version 1.8.0: Default transition has been changed from SwapTransition to SlideTransition.