diff options
| author | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2005-12-30 14:09:37 +0000 |
|---|---|---|
| committer | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2005-12-30 14:09:37 +0000 |
| commit | 68c21083593b5b05681efaffbe6ec50aba385ddc (patch) | |
| tree | 48ad47364d52f48994c98ca3974e6c180cb0f120 /lib/python/Components/config.py | |
| parent | c06f79c0451ca844f89809058a2767a1a319b137 (diff) | |
| download | enigma2-68c21083593b5b05681efaffbe6ec50aba385ddc.tar.gz enigma2-68c21083593b5b05681efaffbe6ec50aba385ddc.zip | |
some changes to the configSelection stuff
Diffstat (limited to 'lib/python/Components/config.py')
| -rw-r--r-- | lib/python/Components/config.py | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/lib/python/Components/config.py b/lib/python/Components/config.py index 2b51d169..25684fc1 100644 --- a/lib/python/Components/config.py +++ b/lib/python/Components/config.py @@ -48,7 +48,18 @@ class configFile: fileHandle.write(wstr) - fileHandle.close() + fileHandle.close() + +def currentConfigSelectionElement(element): + return element.vals[element.value][0] + +def getConfigSelectionElement(element, value): + count = 0 + for x in element.vals: + if x[0] == value: + return count + count += 1 + return -1 class configSelection: def __init__(self, parent): @@ -82,9 +93,6 @@ class configSelection: returnValue = _(self.parent.vals[self.parent.value]) else: returnValue = _(self.parent.vals[self.parent.value][1]) - - - print self.parent.vals[self.parent.value] return ("text", returnValue) |
