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 a875048..542f5d9 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 2cef35c..2b80c22 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)