diff options
| author | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2006-01-25 00:17:26 +0000 |
|---|---|---|
| committer | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2006-01-25 00:17:26 +0000 |
| commit | 6f09a61cf36eb3918574a74588bbeec6a829b084 (patch) | |
| tree | adeab7990ec6538a6dd68967b3542f47fb0f42ec /lib/python/Components/TimerList.py | |
| parent | db2f1b7b345f68095dfeac660fda2105efb485a7 (diff) | |
| download | enigma2-6f09a61cf36eb3918574a74588bbeec6a829b084.tar.gz enigma2-6f09a61cf36eb3918574a74588bbeec6a829b084.zip | |
added ability to diable timers (yellow button in the timer list)
FIXME: we need transparency for pixmaps in an eListboxPythonMultiContent
Diffstat (limited to 'lib/python/Components/TimerList.py')
| -rw-r--r-- | lib/python/Components/TimerList.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/python/Components/TimerList.py b/lib/python/Components/TimerList.py index 8bb6a0d9..2750c7a7 100644 --- 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 enigma import eListboxPythonMultiContent, eListbox, gFont +from enigma import eListboxPythonMultiContent, eListbox, gFont, loadPNG from timer import TimerEntry +from Tools.Directories import resolveFilename, SCOPE_SKIN_IMAGE 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)) + + if timer.disabled: + png = loadPNG(resolveFilename(SCOPE_SKIN_IMAGE, "/redx.png")) + res.append((eListboxPythonMultiContent.TYPE_PIXMAP, 490, 5, 40, 40, png)) return res |
