X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=lib%2Fpython%2FTools%2FNumericalTextInput.py;h=744978953ca738efa51c7081f938637eacccdde1;hb=90ec0bff75e7a1a15a67d52b8db75b469d5d75b2;hp=260f80b4217d38e2024245b4a1ab759c42ea1764;hpb=ff90cba66b3ebe6adf9b436fa8ae9ac440a0c70c;p=vuplus_dvbapp diff --git a/lib/python/Tools/NumericalTextInput.py b/lib/python/Tools/NumericalTextInput.py index 260f80b..7449789 100644 --- a/lib/python/Tools/NumericalTextInput.py +++ b/lib/python/Tools/NumericalTextInput.py @@ -2,21 +2,18 @@ from enigma import * class NumericalTextInput: mapping = [] - mapping.append ("abcABC") # 0 - mapping.append ("abcABC") # 1 - mapping.append ("abcABC") # 2 - mapping.append ("defDEF") # 3 - mapping.append ("ghiGHI") # 4 - mapping.append ("jklJKL") # 5 - mapping.append ("mnoMNO") # 6 - mapping.append ("pqrsPQRS") # 7 - mapping.append ("tuvTUV") # 8 - mapping.append ("wxyzWXYZ") # 9 - - - + mapping.append (".,?'\"0-()@/:_") # 0 + mapping.append (" 1") # 1 + mapping.append ("abc2ABC") # 2 + mapping.append ("def3DEF") # 3 + mapping.append ("ghi4GHI") # 4 + mapping.append ("jkl5JKL") # 5 + mapping.append ("mno6MNO") # 6 + 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) @@ -43,5 +40,6 @@ class NumericalTextInput: self.Timer.stop() print "Timer done" self.nextKey() - self.nextFunction() + if (self.nextFunction != None): + self.nextFunction() \ No newline at end of file