diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2006-06-08 10:34:10 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2006-06-08 10:34:10 +0000 |
| commit | 394e2b2e2488ae3fa5edc6a9a512bcf0414cc562 (patch) | |
| tree | e040b6c7f816f0e87c6c1d9b3ba1d60e51b5570b /lib/python/Components/Input.py | |
| parent | 52b2f99080cc8095128821f4578ca69f8ab061b0 (diff) | |
| download | enigma2-394e2b2e2488ae3fa5edc6a9a512bcf0414cc562.tar.gz enigma2-394e2b2e2488ae3fa5edc6a9a512bcf0414cc562.zip | |
fix setText("")
Diffstat (limited to 'lib/python/Components/Input.py')
| -rw-r--r-- | lib/python/Components/Input.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/python/Components/Input.py b/lib/python/Components/Input.py index 311e42a9..42426114 100644 --- a/lib/python/Components/Input.py +++ b/lib/python/Components/Input.py @@ -26,8 +26,15 @@ class Input(VariableText, HTMLComponent, GUIComponent): text = self.text if self.type == self.PIN: text = "*" * len(self.text) - self.setText(text) - #self.setText(self.text[0:self.currPos] + "_" + self.text[self.currPos] + "_" + self.text[self.currPos + 1:]) + self.message = text + if self.instance: + self.instance.setText(self.message) + + def setText(self, text): + if not len(text): + self.currPos = 0 + self.text = text + self.update() def getText(self): return self.text |
