git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
don't complain on empty config files
[enigma2.git]
/
lib
/
python
/
Components
/
Input.py
diff --git
a/lib/python/Components/Input.py
b/lib/python/Components/Input.py
index 710ad0bc2e8c63a83cbec5c3c3478e847654adab..b30a74e4cc2b3e5d8815373168e4d5a33ae52fa1 100644
(file)
--- 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)