projects
/
vuplus_dvbapp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added ability to diable timers (yellow button in the timer list)
[vuplus_dvbapp]
/
lib
/
python
/
Components
/
TimerList.py
diff --git
a/lib/python/Components/TimerList.py
b/lib/python/Components/TimerList.py
index
8bb6a0d
..
2750c7a
100644
(file)
--- a/
lib/python/Components/TimerList.py
+++ b/
lib/python/Components/TimerList.py
@@
-4,8
+4,9
@@
from GUIComponent import *
from Tools.FuzzyDate import FuzzyTime
import time
from Tools.FuzzyDate import FuzzyTime
import time
-from enigma import eListboxPythonMultiContent, eListbox, gFont
+from enigma import eListboxPythonMultiContent, eListbox, gFont
, loadPNG
from timer import TimerEntry
from timer import TimerEntry
+from Tools.Directories import resolveFilename, SCOPE_SKIN_IMAGE
RT_HALIGN_LEFT = 0
RT_HALIGN_RIGHT = 1
RT_HALIGN_LEFT = 0
RT_HALIGN_RIGHT = 1
@@
-58,6
+59,10
@@
def TimerEntryComponent(timer, processed):
state = "done!"
res.append((eListboxPythonMultiContent.TYPE_TEXT, 320, 50, 240, 20, 1, RT_HALIGN_RIGHT|RT_VALIGN_CENTER, state))
state = "done!"
res.append((eListboxPythonMultiContent.TYPE_TEXT, 320, 50, 240, 20, 1, RT_HALIGN_RIGHT|RT_VALIGN_CENTER, state))
+
+ if timer.disabled:
+ png = loadPNG(resolveFilename(SCOPE_SKIN_IMAGE, "/redx.png"))
+ res.append((eListboxPythonMultiContent.TYPE_PIXMAP, 490, 5, 40, 40, png))
return res
return res