3 class NumericalTextInput:
5 mapping.append (".,?'\"0-()@/:_") # 0
6 mapping.append (" 1") # 1
7 mapping.append ("abc2ABC") # 2
8 mapping.append ("def3DEF") # 3
9 mapping.append ("ghi4GHI") # 4
10 mapping.append ("jkl5JKL") # 5
11 mapping.append ("mno6MNO") # 6
12 mapping.append ("pqrs7PQRS") # 7
13 mapping.append ("tuv8TUV") # 8
14 mapping.append ("wxyz9WXYZ") # 9
16 def __init__(self, nextFunction = None):
17 self.nextFunction = nextFunction
19 self.Timer.timeout.get().append(self.nextChar)
23 def getKey(self, num):
25 self.Timer.start(1000)
26 if (self.lastKey != num):
31 if (len(self.mapping[num]) <= self.pos):
33 return self.mapping[num][self.pos]
43 if (self.nextFunction != None):