X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/8f7dbc5ddb0e674364866b0e41ba42b55c6db8bf..5aca87ce699f59f418740a2f073f1056d8239dad:/lib/python/Components/ParentalControlList.py diff --git a/lib/python/Components/ParentalControlList.py b/lib/python/Components/ParentalControlList.py index 9791e1b0..f5185550 100644 --- a/lib/python/Components/ParentalControlList.py +++ b/lib/python/Components/ParentalControlList.py @@ -1,20 +1,11 @@ -from HTMLComponent import * -from GUIComponent import * +from HTMLComponent import HTMLComponent +from GUIComponent import GUIComponent from MenuList import MenuList from Components.ParentalControl import parentalControl -from Tools.Directories import * +from Tools.Directories import SCOPE_SKIN_IMAGE, resolveFilename -from enigma import * - -RT_HALIGN_LEFT = 0 -RT_HALIGN_RIGHT = 1 -RT_HALIGN_CENTER = 2 -RT_HALIGN_BLOCK = 4 - -RT_VALIGN_TOP = 0 -RT_VALIGN_CENTER = 8 -RT_VALIGN_BOTTOM = 16 +from enigma import loadPNG, eListbox, eListboxPythonMultiContent, gFont, RT_HALIGN_LEFT lockPicture = loadPNG(resolveFilename(SCOPE_SKIN_IMAGE, "lock-fs8.png")) @@ -32,6 +23,7 @@ class ParentalControlList(MenuList, HTMLComponent, GUIComponent): self.list = list self.l.setList(list) self.l.setFont(0, gFont("Regular", 20)) + self.l.setItemHeight(32) GUI_WIDGET = eListbox @@ -41,7 +33,6 @@ class ParentalControlList(MenuList, HTMLComponent, GUIComponent): def postWidgetCreate(self, instance): instance.setContent(self.l) - instance.setItemHeight(32) def toggleSelectedLock(self): print "self.l.getCurrentSelection():", self.l.getCurrentSelection()