projects
/
vuplus_dvbapp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add some parental control improvements (made by Tode)
[vuplus_dvbapp]
/
lib
/
python
/
Components
/
MenuList.py
diff --git
a/lib/python/Components/MenuList.py
b/lib/python/Components/MenuList.py
index
8e083c9
..
7fa1ae9
100644
(file)
--- a/
lib/python/Components/MenuList.py
+++ b/
lib/python/Components/MenuList.py
@@
-4,10
+4,10
@@
from GUIComponent import GUIComponent
from enigma import eListboxPythonStringContent, eListbox
class MenuList(HTMLComponent, GUIComponent):
from enigma import eListboxPythonStringContent, eListbox
class MenuList(HTMLComponent, GUIComponent):
- def __init__(self, list, enableWrapAround=False, content=eListboxPythonStringContent
()
):
+ def __init__(self, list, enableWrapAround=False, content=eListboxPythonStringContent):
GUIComponent.__init__(self)
self.list = list
GUIComponent.__init__(self)
self.list = list
- self.l = content
+ self.l = content
()
self.l.setList(self.list)
self.onSelectionChanged = [ ]
self.enableWrapAround = enableWrapAround
self.l.setList(self.list)
self.onSelectionChanged = [ ]
self.enableWrapAround = enableWrapAround
@@
-31,6
+31,9
@@
class MenuList(HTMLComponent, GUIComponent):
for f in self.onSelectionChanged:
f()
for f in self.onSelectionChanged:
f()
+ def getSelectionIndex(self):
+ return self.l.getCurrentSelectionIndex()
+
def getSelectedIndex(self):
return self.l.getCurrentSelectionIndex()
def getSelectedIndex(self):
return self.l.getCurrentSelectionIndex()