add parental control (still somehow buggy and some minor features missing... don...
[enigma2.git] / lib / python / Components / Input.py
index 710ad0bc2e8c63a83cbec5c3c3478e847654adab..b30a74e4cc2b3e5d8815373168e4d5a33ae52fa1 100644 (file)
@@ -20,6 +20,9 @@ class Input(VariableText, HTMLComponent, GUIComponent, NumericalTextInput):
                self.currPos = 0
                self.overwrite = 0
                self.setText(text)
                self.currPos = 0
                self.overwrite = 0
                self.setText(text)
+               
+       def __len__(self):
+               return len(self.text)
 
        def update(self):
                self.setMarkedPos(self.currPos)
 
        def update(self):
                self.setMarkedPos(self.currPos)