From 13e74ce7d8fcccc12bed3ce65c4f35987f206799 Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Fri, 3 Mar 2006 02:00:18 +0000 Subject: delete characters in the InputBox with mute key --- lib/python/Components/Input.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/python/Components/Input.py') diff --git a/lib/python/Components/Input.py b/lib/python/Components/Input.py index f1a17d90..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) -- cgit v1.2.3