X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/517b078279276fa715d53a8b8a364078546c4610..5aca87ce699f59f418740a2f073f1056d8239dad:/lib/python/Components/Renderer/Listbox.py diff --git a/lib/python/Components/Renderer/Listbox.py b/lib/python/Components/Renderer/Listbox.py index d784b614..ef8206af 100644 --- a/lib/python/Components/Renderer/Listbox.py +++ b/lib/python/Components/Renderer/Listbox.py @@ -1,7 +1,4 @@ -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. @@ -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)