X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/73c8ccf2a900e59f8450ddad57b80a215bb658b4..13e74ce7d8fcccc12bed3ce65c4f35987f206799:/lib/python/Components/Input.py diff --git a/lib/python/Components/Input.py b/lib/python/Components/Input.py index a0252e46..a3ab764e 100644 --- a/lib/python/Components/Input.py +++ b/lib/python/Components/Input.py @@ -69,6 +69,10 @@ class Input(HTMLComponent, GUIComponent, VariableText): self.text = self.text[0:self.currPos] + newNumber + self.text[self.currPos + 1:] self.update() + def delete(self): + self.text = self.text[:self.currPos] + self.text[self.currPos + 1:] + self.update() + def number(self, number): if self.type == self.TEXT: newChar = self.numericalTextInput.getKey(number) @@ -78,9 +82,3 @@ class Input(HTMLComponent, GUIComponent, VariableText): if self.type == self.PIN or self.type == self.NUMBER: self.right() self.update() - - def show(self): - self.instance.show() - - def hide(self): - self.instance.hide() \ No newline at end of file