3 class NumericalTextInput:
5 mapping.append ("abcABC") # 0
6 mapping.append ("abcABC") # 1
7 mapping.append ("abcABC") # 2
8 mapping.append ("defDEF") # 3
9 mapping.append ("ghiGHI") # 4
10 mapping.append ("jklJKL") # 5
11 mapping.append ("mnoMNO") # 6
12 mapping.append ("pqrsPQRS") # 7
13 mapping.append ("tuvTUV") # 8
14 mapping.append ("wxyzWXYZ") # 9
19 def __init__(self, nextFunction):
20 self.nextFunction = nextFunction
22 self.Timer.timeout.get().append(self.nextChar)
26 def getKey(self, num):
28 self.Timer.start(1000)
29 if (self.lastKey != num):
34 if (len(self.mapping[num]) <= self.pos):
36 return self.mapping[num][self.pos]