summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Stanley <fungi@yuggoth.org>2015-07-22 19:39:13 +0000
committerJames E. Blair <corvus@gnu.org>2015-07-25 09:12:05 -0700
commit12060b060c23e76ca075114c9d4981c288387ad8 (patch)
tree3afec090ab1525e758b4b2904cd72504c428e009
parent0b611b5f398838c0bf081c0e24212b23c4755be7 (diff)
Use configured transition duration
When a duration is passed as a parameter into the Transition instantiation, use it.
-rw-r--r--presentty/transition.py2
1 files changed, 1 insertions, 1 deletions
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
18class Transition(urwid.Widget): 18class Transition(urwid.Widget):
19 def __init__(self, duration=0.4): 19 def __init__(self, duration=0.4):
20 super(Transition, self).__init__() 20 super(Transition, self).__init__()
21 self.duration = 0.4 21 self.duration = duration
22 self.old = None 22 self.old = None
23 self.new = None 23 self.new = None
24 self.progress = 0.0 24 self.progress = 0.0