git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
autostart and autoend functions are now called on the start and the end of enigma2...
[enigma2.git]
/
lib
/
python
/
Tools
/
NumericalTextInput.py
diff --git
a/lib/python/Tools/NumericalTextInput.py
b/lib/python/Tools/NumericalTextInput.py
index 02e74ed8a8dc66a8a9ca4ed3af3dcbb9cd48ab00..744978953ca738efa51c7081f938637eacccdde1 100644
(file)
--- a/
lib/python/Tools/NumericalTextInput.py
+++ b/
lib/python/Tools/NumericalTextInput.py
@@
-2,7
+2,7
@@
from enigma import *
class NumericalTextInput:
mapping = []
class NumericalTextInput:
mapping = []
- mapping.append (".,?'\"0") # 0
+ mapping.append (".,?'\"0
-()@/:_
") # 0
mapping.append (" 1") # 1
mapping.append ("abc2ABC") # 2
mapping.append ("def3DEF") # 3
mapping.append (" 1") # 1
mapping.append ("abc2ABC") # 2
mapping.append ("def3DEF") # 3
@@
-12,11
+12,8
@@
class NumericalTextInput:
mapping.append ("pqrs7PQRS") # 7
mapping.append ("tuv8TUV") # 8
mapping.append ("wxyz9WXYZ") # 9
mapping.append ("pqrs7PQRS") # 7
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)
@@
-43,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