Added NoTransition to screenmanager example

This commit is contained in:
Alexander Taylor 2014-01-07 22:27:56 +00:00
parent 01d376ec07
commit 7903d77132
1 changed files with 4 additions and 0 deletions

View File

@ -11,6 +11,7 @@ Builder.load_string('''
#: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()
@ -82,6 +83,9 @@ Builder.load_string('''
Button:
text: 'Use RiseInTransition'
on_release: root.manager.transition = RiseInTransition()
Button:
text: 'Use NoTransition'
on_release: root.manager.transition = NoTransition(duration=0)
''')