Revert "prepared SelectionList for full skineable"
authorlittlesat <littlesat99@yahoo.com>
Fri, 16 Jan 2015 10:03:15 +0000 (11:03 +0100)
committerlittlesat <littlesat99@yahoo.com>
Fri, 16 Jan 2015 10:03:15 +0000 (11:03 +0100)
This reverts commit dde7661ee181ad445033e76db94405c7d3bcabbb.

As we discovered a better way to do this

lib/python/Components/SelectionList.py

index b8ae68d..1691ad4 100644 (file)
@@ -2,8 +2,6 @@ from MenuList import MenuList
 from Tools.Directories import resolveFilename, SCOPE_CURRENT_SKIN
 from enigma import eListboxPythonMultiContent, eListbox, gFont, RT_HALIGN_LEFT
 from Tools.LoadPixmap import LoadPixmap
-from GUIComponent import GUIComponent
-from skin import parseFont
 
 selectionpng = LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_SKIN, "skin_default/icons/lock_on.png"))
 
@@ -19,21 +17,9 @@ def SelectionEntryComponent(description, value, index, selected):
 class SelectionList(MenuList):
        def __init__(self, list = None, enableWrapAround = False):
                MenuList.__init__(self, list or [], enableWrapAround, content = eListboxPythonMultiContent)
-               self.itemFont = gFont("Regular", 20)
+               self.l.setFont(0, gFont("Regular", 20))
                self.l.setItemHeight(30)
 
-       def applySkin(self, desktop, parent):
-               def font(value):
-                       self.itemFont = parseFont(value, ((1,1),(1,1)))
-               for (attrib, value) in self.skinAttributes:
-                       try:
-                               locals().get(attrib)(value)
-                               self.skinAttributes((attrib, value))
-                       except:
-                               pass
-               self.l.setFont(0, self.itemFont)
-               return GUIComponent.applySkin(self, desktop, parent)
-
        def addSelection(self, description, value, index, selected = True):
                self.list.append(SelectionEntryComponent(description, value, index, selected))
                self.setList(self.list)