From: Andreas Monzner Date: Fri, 3 Feb 2006 15:38:45 +0000 (+0000) Subject: enable wrap around in epglist and servicelist X-Git-Tag: 2.6.0~4209 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/f097c3b368c10b7c88f63038459c4c5a38889a1f enable wrap around in epglist and servicelist --- diff --git a/lib/python/Components/EpgList.py b/lib/python/Components/EpgList.py index a8750485..542f5d9a 100644 --- a/lib/python/Components/EpgList.py +++ b/lib/python/Components/EpgList.py @@ -103,6 +103,7 @@ class EPGList(HTMLComponent, GUIComponent): def GUIcreate(self, parent): self.instance = eListbox(parent) + self.instance.setWrapAround(True) self.instance.selectionChanged.get().append(self.selectionChanged) self.instance.setContent(self.l) if SINGLE_CPP > 0: diff --git a/lib/python/Components/ServiceList.py b/lib/python/Components/ServiceList.py index 2cef35c1..2b80c225 100644 --- a/lib/python/Components/ServiceList.py +++ b/lib/python/Components/ServiceList.py @@ -25,12 +25,18 @@ class ServiceList(HTMLComponent, GUIComponent): self.l.getCurrent(r) return r + def atBegin(self): + return self.instance.atBegin() + + def atEnd(self): + return self.instance.atEnd() + def moveUp(self): self.instance.moveSelection(self.instance.moveUp) def moveDown(self): self.instance.moveSelection(self.instance.moveDown) - + def moveToChar(self, char): # TODO fill with life print "Next char: " @@ -51,6 +57,7 @@ class ServiceList(HTMLComponent, GUIComponent): def GUIcreate(self, parent): self.instance = eListbox(parent) + self.instance.setWrapAround(True) self.instance.setContent(self.l) self.setMode(self.mode)