1 from HTMLComponent import *
2 from GUIComponent import *
5 from enigma import eListbox, eListboxPythonConfigContent
7 class ConfigList(HTMLComponent, GUIComponent):
8 def __init__(self, list):
9 GUIComponent.__init__(self)
10 self.l = eListboxPythonConfigContent()
12 self.l.setSeperation(100)
16 selection = self.getCurrent()
18 self.invalidateCurrent()
20 def handleKey(self, key):
21 selection = self.getCurrent()
22 selection[1].handleKey(key)
23 self.invalidateCurrent()
26 return self.l.getCurrentSelection()
28 def invalidateCurrent(self):
29 self.l.invalidateEntry(self.l.getCurrentSelectionIndex())
31 def invalidate(self, entry):
34 if (entry.getConfigPath() == x[1].parent.getConfigPath()):
35 self.l.invalidateEntry(i)
38 def GUIcreate(self, parent):
39 self.instance = eListbox(parent)
40 self.instance.setContent(self.l)
43 self.instance.setContent(None)