aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/config.py
diff options
context:
space:
mode:
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>2006-01-01 13:32:30 +0000
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>2006-01-01 13:32:30 +0000
commit64fdc7815a0b07777d9c9706f02317d325f8f773 (patch)
treebdb352e0e3a50c5fa74d914575e05f42c1a61b78 /lib/python/Components/config.py
parentf338da53aaf9e1ea6e6d7d0c5f4d19285099ae37 (diff)
downloadenigma2-64fdc7815a0b07777d9c9706f02317d325f8f773.tar.gz
enigma2-64fdc7815a0b07777d9c9706f02317d325f8f773.zip
fixed sequence to floating point conversion in usals parameters
Diffstat (limited to 'lib/python/Components/config.py')
-rw-r--r--lib/python/Components/config.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/python/Components/config.py b/lib/python/Components/config.py
index 25684fc1..40a460c2 100644
--- a/lib/python/Components/config.py
+++ b/lib/python/Components/config.py
@@ -181,6 +181,9 @@ class configSequenceArg:
# configsequencearg.get("FLOAT", [(min,max),(min1,max1)]) => x.y with min <= x <= max and min1 <= y <= max1
if (type == "FLOAT"):
return (("."), args, "")
+
+ def getFloat(self, element):
+ return float(("%d.%0" + str(len(str(element.vals[1][1][1]))) + "d") % (element.value[0], element.value[1]))
configsequencearg = configSequenceArg()