aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2005-08-25 22:55:25 +0000
committerFelix Domke <tmbinc@elitedvb.net>2005-08-25 22:55:25 +0000
commitfb298c769ccf5cb29f8461cbef280c969c8f6e26 (patch)
tree80b87f7bf201b40f75c16f7925867f2c61dcbd73 /lib/python
parent7a7ecc4dc80279abb51cc8fbafa4055c8fef8d37 (diff)
downloadenigma2-fb298c769ccf5cb29f8461cbef280c969c8f6e26.tar.gz
enigma2-fb298c769ccf5cb29f8461cbef280c969c8f6e26.zip
- add config slider
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/Components/config.py6
-rw-r--r--lib/python/Screens/Setup.py6
2 files changed, 8 insertions, 4 deletions
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):
diff --git a/lib/python/Screens/Setup.py b/lib/python/Screens/Setup.py
index 9f65daaa..de27ff5e 100644
--- a/lib/python/Screens/Setup.py
+++ b/lib/python/Screens/Setup.py
@@ -42,7 +42,11 @@ class Setup(Screen):
if b == "":
continue
#add to configlist
- list.append( (ItemText, b.controlType(b) ) )
+ item = b.controlType(b)
+
+ # the first b is the item itself, ignored by the configList.
+ # the second one is converted to string.
+ list.append( (ItemText, item) )
def keyOk(self):
self["config"].handleKey(0)