From 01d376ec0703af44bb332e979099ff5d1d632d51 Mon Sep 17 00:00:00 2001 From: Alexander Taylor Date: Tue, 7 Jan 2014 22:27:30 +0000 Subject: [PATCH] Added NoTransition screenmanager transition --- kivy/uix/screenmanager.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/kivy/uix/screenmanager.py b/kivy/uix/screenmanager.py index c36ddecf6..30e515a30 100644 --- a/kivy/uix/screenmanager.py +++ b/kivy/uix/screenmanager.py @@ -463,6 +463,16 @@ class ShaderTransition(TransitionBase): self.manager.real_add_widget(self.screen_in) +class NoTransition(TransitionBase): + '''No transition, instantly switches to the next screen with no delay or + animation. + + .. versionadded:: 1.8.0 + ''' + + duration = NumericProperty(0.0) + + class SlideTransition(TransitionBase): '''Slide Transition, can be used to show a new screen from any direction: left, right, up or down.