1 from HTMLComponent import *
2 from GUIComponent import *
6 class EPGList(HTMLComponent, GUIComponent):
8 GUIComponent.__init__(self)
9 self.l = eListboxEPGContent()
12 evt = self.l.getCurrent()
16 self.instance.moveSelection(self.instance.moveUp)
19 self.instance.moveSelection(self.instance.moveDown)
21 def GUIcreate(self, parent):
22 self.instance = eListbox(parent)
23 self.instance.setContent(self.l)
28 def setRoot(self, root):
32 # def setMode(self, mode):
33 # if mode == self.MODE_NORMAL:
34 # self.instance.setItemHeight(20)
35 # self.l.setVisualMode(eListboxServiceContent.visModeSimple)
37 # self.instance.setItemHeight(40)
38 # self.l.setElementFont(self.l.celServiceName, gFont("Arial", 30))
39 # self.l.setElementPosition(self.l.celServiceName, eRect(40, 0, self.instance.size().width(), 40))
40 # self.l.setElementFont(self.l.celServiceNumber, gFont("Arial", 20))
41 # self.l.setElementPosition(self.l.celServiceNumber, eRect(0, 10, 40, 30))
43 # self.l.setVisualMode(eListboxServiceContent.visModeComplex)