Removed dependency on enum
module.
This commit is contained in:
parent
0bf0fd3591
commit
1c6b42d9e5
@ -1,4 +1,3 @@
|
|||||||
from enum import Enum
|
|
||||||
import time
|
import time
|
||||||
|
|
||||||
from i3pystatus import IntervalModule
|
from i3pystatus import IntervalModule
|
||||||
@ -6,7 +5,7 @@ from i3pystatus.core.command import execute
|
|||||||
from i3pystatus.core.util import TimeWrapper
|
from i3pystatus.core.util import TimeWrapper
|
||||||
|
|
||||||
|
|
||||||
class TimerState(Enum):
|
class TimerState:
|
||||||
stopped = 0
|
stopped = 0
|
||||||
running = 1
|
running = 1
|
||||||
overflow = 2
|
overflow = 2
|
||||||
@ -25,11 +24,6 @@ class Timer(IntervalModule):
|
|||||||
- Execute custom python function or external command when timer overflows
|
- Execute custom python function or external command when timer overflows
|
||||||
(or reaches zero depending on how you look at it).
|
(or reaches zero depending on how you look at it).
|
||||||
|
|
||||||
.. note::
|
|
||||||
This module requires `enum` module which was introduced in python 3.4.
|
|
||||||
If you have older version of python you can get the backported package
|
|
||||||
``enum34`` from PyPI.
|
|
||||||
|
|
||||||
.. rubric:: Available formatters
|
.. rubric:: Available formatters
|
||||||
|
|
||||||
Time formatters are available to show the remaining time.
|
Time formatters are available to show the remaining time.
|
||||||
|
Loading…
Reference in New Issue
Block a user