aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python/Components')
-rw-r--r--lib/python/Components/Renderer/Listbox.py6
-rw-r--r--lib/python/Components/Sources/List.py2
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/python/Components/Renderer/Listbox.py b/lib/python/Components/Renderer/Listbox.py
index d784b614..a1f89377 100644
--- a/lib/python/Components/Renderer/Listbox.py
+++ b/lib/python/Components/Renderer/Listbox.py
@@ -46,7 +46,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 +56,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)
diff --git a/lib/python/Components/Sources/List.py b/lib/python/Components/Sources/List.py
index 6d083f05..e141da59 100644
--- a/lib/python/Components/Sources/List.py
+++ b/lib/python/Components/Sources/List.py
@@ -31,7 +31,7 @@ to generate HTML."""
def selectionChanged(self, index):
if self.disable_callbacks:
return
-
+
for x in self.onSelectionChanged:
x()