git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'translations' into experimental
[enigma2.git]
/
lib
/
python
/
Components
/
MenuList.py
diff --git
a/lib/python/Components/MenuList.py
b/lib/python/Components/MenuList.py
index 8e083c9c782dc07a55f3d19b489ca69f8bfa52ec..7fa1ae9776dbedce60814cdcda2ac5c6d1865644 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()