enable wrap around in epglist and servicelist
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Fri, 3 Feb 2006 15:38:45 +0000 (15:38 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Fri, 3 Feb 2006 15:38:45 +0000 (15:38 +0000)
lib/python/Components/EpgList.py
lib/python/Components/ServiceList.py

index a87504858a19c472d0237802a38f5f25e862065c..542f5d9afe8c91c69ea7e3bf3b64278070e7765c 100644 (file)
@@ -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:
index 2cef35c16c3d1256f956fc1723240d81bc42553d..2b80c225d4e615e5fded817e1d603b293a771673 100644 (file)
@@ -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)