diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2006-04-27 09:22:18 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2006-04-27 09:22:18 +0000 |
| commit | c803490aec2d7c7f13966e1a2e926cac018dea2e (patch) | |
| tree | f50fbd414676fb98851254030d535dd15a7c7c72 /lib/python/Components/MenuList.py | |
| parent | 59cee6bc80d4697bec7bebb8dd65312bddec34ad (diff) | |
| download | enigma2-c803490aec2d7c7f13966e1a2e926cac018dea2e.tar.gz enigma2-c803490aec2d7c7f13966e1a2e926cac018dea2e.zip | |
make bouquet +/- useable in multiepg to change directly from one to another bouquet epg
Diffstat (limited to 'lib/python/Components/MenuList.py')
| -rw-r--r-- | lib/python/Components/MenuList.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/python/Components/MenuList.py b/lib/python/Components/MenuList.py index 0e337198..f4b2c361 100644 --- a/lib/python/Components/MenuList.py +++ b/lib/python/Components/MenuList.py @@ -4,12 +4,13 @@ from GUIComponent import * from enigma import eListboxPythonStringContent, eListbox class MenuList(HTMLComponent, GUIComponent): - def __init__(self, list): + def __init__(self, list, enableWrapAround=False): GUIComponent.__init__(self) self.list = list self.l = eListboxPythonStringContent() self.l.setList(self.list) self.onSelectionChanged = [ ] + self.enableWrapAround = enableWrapAround def getCurrent(self): return self.l.getCurrentSelection() @@ -18,6 +19,8 @@ class MenuList(HTMLComponent, GUIComponent): self.instance = eListbox(parent) self.instance.setContent(self.l) self.instance.selectionChanged.get().append(self.selectionChanged) + if self.enableWrapAround: + self.instance.setWrapAround(True) def GUIdelete(self): self.instance.setContent(None) @@ -52,4 +55,4 @@ class MenuList(HTMLComponent, GUIComponent): def selectionEnabled(self, enabled): if self.instance is not None: - self.instance.setSelectionEnable(enabled)
\ No newline at end of file + self.instance.setSelectionEnable(enabled) |
