diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2006-05-26 22:50:00 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2006-05-26 22:50:00 +0000 |
| commit | ff3e20702fe0458bdefbb42f851ba29c64c6da69 (patch) | |
| tree | c2c995b9817a3f82f57d473fa0b5333414140f8c /lib/python | |
| parent | d2da0253f85bb6df820e3c995c80d588ae7d08a5 (diff) | |
| download | enigma2-ff3e20702fe0458bdefbb42f851ba29c64c6da69.tar.gz enigma2-ff3e20702fe0458bdefbb42f851ba29c64c6da69.zip | |
add support for show small icons behind each channel in servicelist (used for type -S -C -T)
show folder icon in channellist
Diffstat (limited to 'lib/python')
| -rw-r--r-- | lib/python/Components/ServiceList.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/python/Components/ServiceList.py b/lib/python/Components/ServiceList.py index 85f004c0..8525ade3 100644 --- a/lib/python/Components/ServiceList.py +++ b/lib/python/Components/ServiceList.py @@ -5,6 +5,8 @@ from enigma import * from string import upper +from Tools.Directories import resolveFilename, SCOPE_SKIN, SCOPE_SKIN_IMAGE, SCOPE_FONTS + class ServiceList(HTMLComponent, GUIComponent): MODE_NORMAL = 0 MODE_FAVOURITES = 1 @@ -12,6 +14,23 @@ class ServiceList(HTMLComponent, GUIComponent): def __init__(self): GUIComponent.__init__(self) self.l = eListboxServiceContent() + + pic = loadPNG(resolveFilename(SCOPE_SKIN_IMAGE, "folder.png")) + if pic: + self.l.setPixmap(self.l.picFolder, pic) + + pic = loadPNG(resolveFilename(SCOPE_SKIN_IMAGE, "ico_dvb_s-fs8.png")) + if pic: + self.l.setPixmap(self.l.picDVB_S, pic) + + pic = loadPNG(resolveFilename(SCOPE_SKIN_IMAGE, "ico_dvb_c-fs8.png")) + if pic: + self.l.setPixmap(self.l.picDVB_C, pic) + + pic = loadPNG(resolveFilename(SCOPE_SKIN_IMAGE, "ico_dvb_t-fs8.png")) + if pic: + self.l.setPixmap(self.l.picDVB_T, pic) + self.root = None self.mode = self.MODE_NORMAL |
