From 5db2dc5c63948651b3e4b337d7057cd940ccc644 Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Thu, 13 Dec 2007 01:25:52 +0000 Subject: factor out loadPNG into generic LoadPixmap --- lib/python/Components/ChoiceList.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/python/Components/ChoiceList.py') 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)) -- cgit v1.2.3