1 from HTMLComponent import *
2 from GUIComponent import *
4 from Tools.FuzzyDate import FuzzyTime
6 from enigma import eListboxPythonMultiContent, eListbox, gFont
22 # | <Service> <Name of the Timer> |
25 def TimerEntry(timer, processed):
28 res.append((0, 0, 400, 30, 0, RT_HALIGN_LEFT, timer.service_ref.getServiceName()))
29 res.append((0, 30, 200, 20, 1, RT_HALIGN_LEFT, "%s, %s" % FuzzyTime(timer.begin)))
32 res.append((200, 30, 200, 20, 1, RT_HALIGN_RIGHT, FuzzyTime(timer.end)[1]))
34 res.append((200, 30, 200, 20, 1, RT_HALIGN_RIGHT, "done"))
37 class TimerList(HTMLComponent, GUIComponent):
38 def __init__(self, list):
39 GUIComponent.__init__(self)
40 self.l = eListboxPythonMultiContent()
42 self.l.setFont(0, gFont("Arial", 20))
43 self.l.setFont(1, gFont("Arial", 18))
46 return self.l.getCurrentSelection()
48 def GUIcreate(self, parent):
49 self.instance = eListbox(parent)
50 self.instance.setContent(self.l)
51 self.instance.setItemHeight(50)
54 self.instance.setContent(None)