diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2006-10-06 16:00:57 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2006-10-06 16:00:57 +0000 |
| commit | 1c9b6ea7f091be3c8be45dc21317af0adcc92c10 (patch) | |
| tree | 4bf6d245dc75cf1cfccd2c87a7fd23c5b799d140 /lib/python | |
| parent | 2669cc5e44c030dc749e1999c3f96d5296362a54 (diff) | |
| download | enigma2-1c9b6ea7f091be3c8be45dc21317af0adcc92c10.tar.gz enigma2-1c9b6ea7f091be3c8be45dc21317af0adcc92c10.zip | |
copy default values for sequence, remove some debug
Diffstat (limited to 'lib/python')
| -rw-r--r-- | lib/python/Components/config.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/python/Components/config.py b/lib/python/Components/config.py index b5a0bbbd..4da004e1 100644 --- a/lib/python/Components/config.py +++ b/lib/python/Components/config.py @@ -1,6 +1,7 @@ import time from Tools.NumericalTextInput import NumericalTextInput from Tools.Directories import resolveFilename, SCOPE_CONFIG +import copy # ConfigElement, the base class of all ConfigElements. @@ -280,7 +281,8 @@ class ConfigSequence(ConfigElement): self.limits = limits self.censor_char = censor_char - self.value = self.default = default + self.default = default + self.value = copy.copy(default) def validate(self): max_pos = 0 @@ -321,7 +323,6 @@ class ConfigSequence(ConfigElement): self.validatePos() if key in KEY_NUMBERS: - print "is number" block_len = [] for x in self.limits: block_len.append(len(str(x[1]))) @@ -357,8 +358,6 @@ class ConfigSequence(ConfigElement): self.validate() self.changed() - print "res:", self._value - def getMulti(self, selected): value = "" mPos = self.marked_pos @@ -504,8 +503,6 @@ class ConfigText(ConfigElement, NumericalTextInput): return ("mtext"[1-selected:], self.value, [self.marked_pos]) def helpWindow(self): - print "helpWindow for text!" - from Screens.NumericalTextInputHelpDialog import NumericalTextInputHelpDialog return (NumericalTextInputHelpDialog,self) |
