1 from HTMLComponent import *
2 from GUIComponent import *
4 from enigma import eListboxPythonStringContent, eListbox
6 class MenuList(HTMLComponent, GUIComponent):
7 def __init__(self, list):
8 GUIComponent.__init__(self)
10 self.l = eListboxPythonStringContent()
11 self.l.setList(self.list)
14 return self.l.getCurrentSelection()
16 def GUIcreate(self, parent):
17 self.instance = eListbox(parent)
18 self.instance.setContent(self.l)
21 self.instance.setContent(None)