small cleanup
[enigma2.git] / lib / python / Components / Renderer / Listbox.py
index ab696c23e99205a967993593cff6cc3621b3b502..ef8206af22c562ed33d109722b7ecbde2dca84a1 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):
@@ -56,14 +53,14 @@ class Listbox(Renderer, object):
                if self.instance is None:
                        return None
                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)
@@ -75,5 +72,5 @@ class Listbox(Renderer, object):
 
        selection_enabled = property(lambda self: self.__selection_enabled, setSelectionEnabled)
 
-       def changed(self):
+       def changed(self, what):
                self.content = self.source.content