remove debug
[enigma2.git] / lib / python / Components / Renderer / Listbox.py
index 4ccc0a40da8d95ba7cd31812e6838f0bc0120c78..7c79acb74429484345761b7e447cd8a51eddddef 100644 (file)
@@ -1,10 +1,7 @@
-from Components.VariableText import VariableText
 from Renderer import Renderer
-from Tools.Event import Event
-
 from enigma import eListbox
 
-# the listbox renderer is the listbox, but no listbox content
+# the listbox renderer is the listbox, but no listbox content.
 # the content will be provided by the source (or converter).
 
 # the source should emit the 'changed' signal whenever
@@ -46,7 +43,7 @@ class Listbox(Renderer, object):
                self.__wrap_around = wrap_around
                if self.instance is not None:
                        self.instance.setWrapAround(self.__wrap_around)
-       
+
        wrap_around = property(lambda self: self.__wrap_around, setWrapAround)
 
        def selectionChanged(self):
@@ -54,16 +51,16 @@ class Listbox(Renderer, object):
 
        def getIndex(self):
                if self.instance is None:
-                       return None
+                       return 0
                return self.instance.getCurrentIndex()
-               
+
        def moveToIndex(self, index):
                if self.instance is None:
                        return
                self.instance.moveSelectionTo(index)
 
        index = property(getIndex, moveToIndex)
-       
+
        def move(self, direction):
                if self.instance is not None:
                        self.instance.moveSelection(direction)