X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/65e19746f08f1287005861692322cdf868b06dc6..d65ce06bfed2444d9870630f095db401d78a096e:/lib/python/Components/Input.py diff --git a/lib/python/Components/Input.py b/lib/python/Components/Input.py index 710ad0bc..e0a7f449 100644 --- a/lib/python/Components/Input.py +++ b/lib/python/Components/Input.py @@ -1,6 +1,6 @@ -from HTMLComponent import * -from GUIComponent import * -from VariableText import * +from HTMLComponent import HTMLComponent +from GUIComponent import GUIComponent +from VariableText import VariableText from enigma import eLabel @@ -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)