X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/ed40f6f85c9c07c3c1224ae20601082c0309a631..28e2ea71262e1d19c3b3fad9202734927236b6e6:/lib/python/Components/TimerList.py diff --git a/lib/python/Components/TimerList.py b/lib/python/Components/TimerList.py index d2ccbb9c..e31a0f4a 100644 --- a/lib/python/Components/TimerList.py +++ b/lib/python/Components/TimerList.py @@ -1,11 +1,10 @@ -from HTMLComponent import * -from GUIComponent import * +from HTMLComponent import HTMLComponent +from GUIComponent import GUIComponent from Tools.FuzzyDate import FuzzyTime -import time from enigma import eListboxPythonMultiContent, eListbox, gFont, loadPNG, \ - RT_HALIGN_CENTER, RT_HALIGN_LEFT, RT_HALIGN_RIGHT, RT_VALIGN_CENTER + RT_HALIGN_LEFT, RT_HALIGN_RIGHT, RT_VALIGN_CENTER from timer import TimerEntry from Tools.Directories import resolveFilename, SCOPE_SKIN_IMAGE @@ -71,6 +70,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() @@ -79,7 +79,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)