Home | Trees | Indices | Help |
---|
|
1 # -*- coding: utf-8 -*- 2 # Elisa - Home multimedia server 3 # Copyright (C) 2006-2008 Fluendo Embedded S.L. (www.fluendo.com). 4 # All rights reserved. 5 # 6 # This file is available under one of two license agreements. 7 # 8 # This file is licensed under the GPL version 2. 9 # See "LICENSE.GPL" in the root of this distribution including a special 10 # exception to use Elisa with Fluendo's plugins. 11 # 12 # The GPL part of Elisa is also available under a commercial licensing 13 # agreement from Fluendo. 14 # See "LICENSE.Elisa" in the root directory of this distribution package 15 # for details on that license. 16 17 18 __maintainer__ = 'Florian Boucault <florian@fluendo.com>' 19 20 21 from pgm.timing import implicit 22 23 from elisa.core import common 24 25 pr = common.application.plugin_registry 26 PigmentTransition = pr.get_component_class("pigment:pigment_transition") 27294231 PigmentTransition.apply(self, view, end_callback) 32 33 params = {"duration": 500, 34 "transformation": implicit.DECELERATE, 35 "end_callback": lambda x: self.stop()} 36 self.implicit.setup_next_animations(**params) 37 38 canvas = view.frontend.context.canvas 39 40 self.implicit.size = canvas.size 41 self.implicit.position = (0.0, 0.0, 1.0)
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0beta1 on Wed Jan 16 19:10:26 2008 | http://epydoc.sourceforge.net |