diff options
author | Jeremy Stanley <fungi@yuggoth.org> | 2015-07-22 19:39:13 +0000 |
---|---|---|
committer | James E. Blair <corvus@gnu.org> | 2015-07-25 09:12:05 -0700 |
commit | 12060b060c23e76ca075114c9d4981c288387ad8 (patch) | |
tree | 3afec090ab1525e758b4b2904cd72504c428e009 | |
parent | 0b611b5f398838c0bf081c0e24212b23c4755be7 (diff) |
Use configured transition duration
When a duration is passed as a parameter into the Transition
instantiation, use it.
-rw-r--r-- | presentty/transition.py | 2 |
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 | |||
18 | class Transition(urwid.Widget): | 18 | class 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 |