X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/52b2f99080cc8095128821f4578ca69f8ab061b0..394e2b2e2488ae3fa5edc6a9a512bcf0414cc562:/lib/python/Components/Input.py 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