git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix static responses
[enigma2.git]
/
lib
/
python
/
Tools
/
NumericalTextInput.py
diff --git
a/lib/python/Tools/NumericalTextInput.py
b/lib/python/Tools/NumericalTextInput.py
index 79c330107bed9cb4f0f980fb5cd0db5617439451..744978953ca738efa51c7081f938637eacccdde1 100644
(file)
--- a/
lib/python/Tools/NumericalTextInput.py
+++ b/
lib/python/Tools/NumericalTextInput.py
@@
-13,7
+13,7
@@
class NumericalTextInput:
mapping.append ("tuv8TUV") # 8
mapping.append ("wxyz9WXYZ") # 9
mapping.append ("tuv8TUV") # 8
mapping.append ("wxyz9WXYZ") # 9
- def __init__(self, nextFunction):
+ def __init__(self, nextFunction
= None
):
self.nextFunction = nextFunction
self.Timer = eTimer()
self.Timer.timeout.get().append(self.nextChar)
self.nextFunction = nextFunction
self.Timer = eTimer()
self.Timer.timeout.get().append(self.nextChar)
@@
-40,5
+40,6
@@
class NumericalTextInput:
self.Timer.stop()
print "Timer done"
self.nextKey()
self.Timer.stop()
print "Timer done"
self.nextKey()
- self.nextFunction()
+ if (self.nextFunction != None):
+ self.nextFunction()
\ No newline at end of file
\ No newline at end of file