X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=lib%2Fpython%2FComponents%2FInput.py;h=b30a74e4cc2b3e5d8815373168e4d5a33ae52fa1;hb=3dfafb8052158a04e3f2316bf3b63a5a79ab331e;hp=710ad0bc2e8c63a83cbec5c3c3478e847654adab;hpb=65e19746f08f1287005861692322cdf868b06dc6;p=vuplus_dvbapp diff --git a/lib/python/Components/Input.py b/lib/python/Components/Input.py index 710ad0b..b30a74e 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)