aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/Input.py
diff options
context:
space:
mode:
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>2006-10-10 03:00:49 +0000
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>2006-10-10 03:00:49 +0000
commit01abec53c6856c24666967ee51d25d09fc6b8863 (patch)
tree19d7bbbd3ce91544c36ba2fc38af83c877d82b01 /lib/python/Components/Input.py
parentce7847e4311c165e5441ac2dbb0d9cdbe95b68b9 (diff)
downloadenigma2-01abec53c6856c24666967ee51d25d09fc6b8863.tar.gz
enigma2-01abec53c6856c24666967ee51d25d09fc6b8863.zip
add parental control (still somehow buggy and some minor features missing... don't trust it
yet to protect your children)
Diffstat (limited to 'lib/python/Components/Input.py')
-rw-r--r--lib/python/Components/Input.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/python/Components/Input.py b/lib/python/Components/Input.py
index 710ad0bc..b30a74e4 100644
--- a/lib/python/Components/Input.py
+++ b/lib/python/Components/Input.py
@@ -20,6 +20,9 @@ class Input(VariableText, HTMLComponent, GUIComponent, NumericalTextInput):
self.currPos = 0
self.overwrite = 0
self.setText(text)
+
+ def __len__(self):
+ return len(self.text)
def update(self):
self.setMarkedPos(self.currPos)