From 12060b060c23e76ca075114c9d4981c288387ad8 Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Wed, 22 Jul 2015 19:39:13 +0000 Subject: Use configured transition duration When a duration is passed as a parameter into the Transition instantiation, use it. --- presentty/transition.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/presentty/transition.py b/presentty/transition.py index 9133629..c699ddb 100644 --- a/presentty/transition.py +++ b/presentty/transition.py @@ -18,7 +18,7 @@ import urwid class Transition(urwid.Widget): def __init__(self, duration=0.4): super(Transition, self).__init__() - self.duration = 0.4 + self.duration = duration self.old = None self.new = None self.progress = 0.0 -- cgit v1.2.3