Module ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias Expr Call AttributeLoad NameLoad attr Str ClassDef bases NameLoad body Assign NameStore Call NameLoad Num decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad For NameStore Call NameLoad Num body Expr Call AttributeLoad NameLoad attr Call NameLoad keyword BinOpMod Str NameLoad Return NameLoad decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad Call NameLoad attr
N/A kivy.app App kivy.uix.screenmanager ScreenManager Screen kivy.properties NumericProperty kivy.lang Builder N/A N/A N/A Builder load_string 
#:import random random.random
#:import SlideTransition kivy.uix.screenmanager.SlideTransition
#:import SwapTransition kivy.uix.screenmanager.SwapTransition
#:import WipeTransition kivy.uix.screenmanager.WipeTransition
#:import FadeTransition kivy.uix.screenmanager.FadeTransition
#:import RiseInTransition kivy.uix.screenmanager.RiseInTransition
#:import FallOutTransition kivy.uix.screenmanager.FallOutTransition
#:import NoTransition kivy.uix.screenmanager.NoTransition

<CustomScreen>:
    hue: random()
    canvas:
        Color:
            hsv: self.hue, .5, .3
        Rectangle:
            size: self.size

    Label:
        font_size: 42
        text: root.name

    Button:
        text: 'Next screen'
        size_hint: None, None
        pos_hint: {'right': 1}
        size: 150, 50
        on_release: root.manager.current = root.manager.next()

    Button:
        text: 'Previous screen'
        size_hint: None, None
        size: 150, 50
        on_release: root.manager.current = root.manager.previous()

    BoxLayout:
        size_hint: .5, None
        height: 250
        pos_hint: {'center_x': .5}
        orientation: 'vertical'

        Button:
            text: 'Use SlideTransition with "up" direction'
            on_release: root.manager.transition =                         SlideTransition(direction="up")

        Button:
            text: 'Use SlideTransition with "down" direction'
            on_release: root.manager.transition =                         SlideTransition(direction="down")

        Button:
            text: 'Use SlideTransition with "left" direction'
            on_release: root.manager.transition =                         SlideTransition(direction="left")

        Button:
            text: 'Use SlideTransition with "right" direction'
            on_release: root.manager.transition =                         SlideTransition(direction="right")

        Button:
            text: 'Use SwapTransition'
            on_release: root.manager.transition = SwapTransition()

        Button:
            text: 'Use WipeTransition'
            on_release: root.manager.transition = WipeTransition()

        Button:
            text: 'Use FadeTransition'
            on_release: root.manager.transition = FadeTransition()

        Button:
            text: 'Use FallOutTransition'
            on_release: root.manager.transition = FallOutTransition()

        Button:
            text: 'Use RiseInTransition'
            on_release: root.manager.transition = RiseInTransition()
        Button:
            text: 'Use NoTransition'
            on_release: root.manager.transition = NoTransition(duration=0)
 CustomScreen N/A Screen N/A N/A hue N/A NumericProperty 0 N/A ScreenManagerApp N/A App N/A build N/A N/A self N/A N/A N/A root N/A ScreenManager N/A x N/A range 4 N/A N/A N/A N/A root add_widget N/A CustomScreen name N/A Screen %d x N/A root N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A N/A ScreenManagerApp run