git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove old plugins
[enigma2.git]
/
lib
/
python
/
Components
/
ConfigList.py
diff --git
a/lib/python/Components/ConfigList.py
b/lib/python/Components/ConfigList.py
index a2bdcb0b3ce532003260ea88b8ed397e0af35fdb..7ed00014377ccf732695465b74d47976c5d07502 100644
(file)
--- a/
lib/python/Components/ConfigList.py
+++ b/
lib/python/Components/ConfigList.py
@@
-10,19
+10,32
@@
class ConfigList(HTMLComponent, GUIComponent):
self.l = eListboxPythonConfigContent()
self.l.setList(list)
self.l.setSeperation(100)
self.l = eListboxPythonConfigContent()
self.l.setList(list)
self.l.setSeperation(100)
+ self.list = list
def toggle(self):
selection = self.getCurrent()
selection[1].toggle()
self.invalidateCurrent()
def toggle(self):
selection = self.getCurrent()
selection[1].toggle()
self.invalidateCurrent()
-
+
+ def handleKey(self, key):
+ selection = self.getCurrent()
+ selection[1].handleKey(key)
+ self.invalidateCurrent()
+
def getCurrent(self):
return self.l.getCurrentSelection()
def invalidateCurrent(self):
self.l.invalidateEntry(self.l.getCurrentSelectionIndex())
def getCurrent(self):
return self.l.getCurrentSelection()
def invalidateCurrent(self):
self.l.invalidateEntry(self.l.getCurrentSelectionIndex())
-
- def GUIcreate(self, parent, skindata):
+
+ def invalidate(self, entry):
+ i = 0
+ for x in self.list:
+ if (entry.getConfigPath() == x[1].parent.getConfigPath()):
+ self.l.invalidateEntry(i)
+ i += 1
+
+ def GUIcreate(self, parent):
self.instance = eListbox(parent)
self.instance.setContent(self.l)
self.instance = eListbox(parent)
self.instance.setContent(self.l)