nicer
[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.list = list
10                 self.l = eListboxPythonStringContent()
11                 self.l.setList(self.list)
12         
13         def getCurrent(self):
14                 return self.l.getCurrentSelection()
15         
16         def GUIcreate(self, parent):
17                 self.instance = eListbox(parent)
18                 self.instance.setContent(self.l)
19         
20         def GUIdelete(self):
21                 self.instance.setContent(None)
22                 self.instance = None
23
24