diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2007-12-13 01:25:52 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2007-12-13 01:25:52 +0000 |
| commit | 5db2dc5c63948651b3e4b337d7057cd940ccc644 (patch) | |
| tree | cdb77048bb1954de6ea7e983302371b33e6f812f /lib/python/Components/ChoiceList.py | |
| parent | 7bcaff119363f42cd4263a5e07982de7671734a7 (diff) | |
| download | enigma2-5db2dc5c63948651b3e4b337d7057cd940ccc644.tar.gz enigma2-5db2dc5c63948651b3e4b337d7057cd940ccc644.zip | |
factor out loadPNG into generic LoadPixmap
Diffstat (limited to 'lib/python/Components/ChoiceList.py')
| -rw-r--r-- | lib/python/Components/ChoiceList.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/python/Components/ChoiceList.py b/lib/python/Components/ChoiceList.py index 14216cf1..07bb56d0 100644 --- a/lib/python/Components/ChoiceList.py +++ b/lib/python/Components/ChoiceList.py @@ -2,7 +2,8 @@ from HTMLComponent import HTMLComponent from GUIComponent import GUIComponent from MenuList import MenuList from Tools.Directories import SCOPE_SKIN_IMAGE, resolveFilename -from enigma import RT_HALIGN_LEFT, eListboxPythonMultiContent, eListbox, gFont, loadPNG +from enigma import RT_HALIGN_LEFT, eListboxPythonMultiContent, eListbox, gFont +from Tools.LoadPixmap import LoadPixmap def ChoiceEntryComponent(key, text): res = [ text ] @@ -11,7 +12,7 @@ def ChoiceEntryComponent(key, text): else: res.append((eListboxPythonMultiContent.TYPE_TEXT, 32, 00, 800, 25, 0, RT_HALIGN_LEFT, text[0])) - png = loadPNG(resolveFilename(SCOPE_SKIN_IMAGE, "key_" + key + "-fs8.png")) + png = LoadPixmap(resolveFilename(SCOPE_SKIN_IMAGE, "key_" + key + "-fs8.png")) if png is not None: res.append((eListboxPythonMultiContent.TYPE_PIXMAP_ALPHATEST, 0, 0, 30, 20, png)) |
