change language order
[enigma2.git] / lib / python / Components / Input.py
index f1a17d90b8f042453d18418a4c9ff9af4b648506..d561c5dbf83469e35ecdebec960bce18b04d16af 100644 (file)
@@ -6,7 +6,7 @@ from enigma import eLabel
 
 from Tools.NumericalTextInput import NumericalTextInput
 
-class Input(HTMLComponent, GUIComponent, VariableText):
+class Input(VariableText, HTMLComponent, GUIComponent):
        TEXT = 0
        PIN = 1
        NUMBER = 2      
@@ -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)