From 01abec53c6856c24666967ee51d25d09fc6b8863 Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Tue, 10 Oct 2006 03:00:49 +0000 Subject: add parental control (still somehow buggy and some minor features missing... don't trust it yet to protect your children) --- lib/python/Components/Input.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/python/Components/Input.py') 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) -- cgit v1.2.3