From fb298c769ccf5cb29f8461cbef280c969c8f6e26 Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Thu, 25 Aug 2005 22:55:25 +0000 Subject: - add config slider --- lib/python/Components/config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/python/Components') diff --git a/lib/python/Components/config.py b/lib/python/Components/config.py index 4571fd4c..10296437 100644 --- a/lib/python/Components/config.py +++ b/lib/python/Components/config.py @@ -48,9 +48,9 @@ class ConfigSlider: if self.val > 10: self.val = 10 - - def __str__(self): #needed by configlist - return ("0", "10", "20", "30", "40", "50", "60", "70", "80", "90", "100")[self.val] + + def __call__(self): #needed by configlist + return ("slider", self.val * 10) class ConfigSubsection: def __init__(self): -- cgit v1.2.3