From f097c3b368c10b7c88f63038459c4c5a38889a1f Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Fri, 3 Feb 2006 15:38:45 +0000 Subject: [PATCH] enable wrap around in epglist and servicelist --- lib/python/Components/EpgList.py | 1 + lib/python/Components/ServiceList.py | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) 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) -- 2.30.2