add lcd
[enigma2.git] / lib / python / Components / MenuList.py
1 from HTMLComponent import *
2 from GUIComponent import *
3
4 from enigma import eListboxPythonStringContent, eListbox
5
6 class MenuList(HTMLComponent, GUIComponent):
7         def __init__(self, list):
8                 GUIComponent.__init__(self)
9                 self.l = eListboxPythonStringContent()
10                 self.l.setList(list)
11         
12         def getCurrent(self):
13                 return self.l.getCurrentSelection()
14         
15         def GUIcreate(self, parent):
16                 self.instance = eListbox(parent)
17                 self.instance.setContent(self.l)
18         
19         def GUIdelete(self):
20                 self.instance.setContent(None)
21                 self.instance = None
22
23