blob: 6fb33540de20cf13491a60368dbc2977d3daafc9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
from HTMLComponent import *
from GUIComponent import *
from enigma import eListboxPythonStringContent, eListbox
class MenuList(HTMLComponent, GUIComponent):
def __init__(self, list):
GUIComponent.__init__(self)
self.l = eListboxPythonStringContent()
self.l.setList(list)
def getCurrent(self):
return self.l.getCurrentSelection()
def GUIcreate(self, parent):
self.instance = eListbox(parent)
self.instance.setContent(self.l)
def GUIdelete(self):
self.instance.setContent(None)
self.instance = None
|