X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/c0d78035b8c76e719bf7c05ff3812eb5a6ce9fe3..c26cf2bece26e34923c082d2e2b08ccf08531d90:/lib/python/Components/TimerList.py diff --git a/lib/python/Components/TimerList.py b/lib/python/Components/TimerList.py index 2f60fcfb..c732e947 100644 --- a/lib/python/Components/TimerList.py +++ b/lib/python/Components/TimerList.py @@ -4,22 +4,11 @@ from GUIComponent import * from Tools.FuzzyDate import FuzzyTime import time -from enigma import eListboxPythonMultiContent, eListbox, gFont, loadPNG +from enigma import eListboxPythonMultiContent, eListbox, gFont, loadPNG, \ + RT_HALIGN_CENTER, RT_HALIGN_LEFT, RT_HALIGN_RIGHT, RT_VALIGN_CENTER from timer import TimerEntry from Tools.Directories import resolveFilename, SCOPE_SKIN_IMAGE -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 - -RT_WRAP = 32 - - # # | | # | | @@ -82,6 +71,7 @@ class TimerList(HTMLComponent, GUIComponent, object): self.l.setList(list) self.l.setFont(0, gFont("Regular", 20)) self.l.setFont(1, gFont("Regular", 18)) + self.l.setItemHeight(70) def getCurrent(self): return self.l.getCurrentSelection() @@ -90,7 +80,6 @@ class TimerList(HTMLComponent, GUIComponent, object): def postWidgetCreate(self, instance): instance.setContent(self.l) - instance.setItemHeight(70) def moveToIndex(self, index): self.instance.moveSelectionTo(index)