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 if selection[1].parent.enabled:
23 selection[1].handleKey(key)
24 self.invalidateCurrent()
27 return self.l.getCurrentSelection()
29 def invalidateCurrent(self):
30 self.l.invalidateEntry(self.l.getCurrentSelectionIndex())
32 def invalidate(self, entry):
35 if (entry.getConfigPath() == x[1].parent.getConfigPath()):
36 self.l.invalidateEntry(i)
39 def GUIcreate(self, parent):
40 self.instance = eListbox(parent)
41 self.instance.setContent(self.l)
44 self.instance.setContent(None)