diff options
| author | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2008-07-09 16:20:27 +0000 |
|---|---|---|
| committer | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2008-07-09 16:20:27 +0000 |
| commit | 7dd0844fdd708087461076e4da1c6bc7328ec3de (patch) | |
| tree | 2c095f40a0f1796aebc712131d7edc6f27709ac3 /lib/python/Components/config.py | |
| parent | 250e846dc7fb2a3920e1aabd2430adb49fca5314 (diff) | |
| download | enigma2-7dd0844fdd708087461076e4da1c6bc7328ec3de.tar.gz enigma2-7dd0844fdd708087461076e4da1c6bc7328ec3de.zip | |
fix configmode selection in sat config (not yet working 100% properly)
Diffstat (limited to 'lib/python/Components/config.py')
| -rw-r--r-- | lib/python/Components/config.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/python/Components/config.py b/lib/python/Components/config.py index 8cb70987..1ccf3e37 100644 --- a/lib/python/Components/config.py +++ b/lib/python/Components/config.py @@ -213,6 +213,11 @@ class ConfigSelection(ConfigElement): self.value = self.choices[0] elif key == KEY_END: self.value = self.choices[nchoices - 1] + + def selectNext(self): + nchoices = len(self.choices) + i = self.choices.index(self.value) + self.value = self.choices[(i + 1) % nchoices] def getText(self): descr = self.description[self.value] @@ -1364,6 +1369,10 @@ def getConfigListEntry(*args): assert len(args) > 1, "getConfigListEntry needs a minimum of two arguments (descr, configElement)" return args +def updateConfigElement(element, newelement): + newelement.value = element.value + return newelement + #def _(x): # return x # |
