i made entire app from zero. now I have working UI and problem how to get text input working. I have some ideas I am testing actively. now it only prints "aaaaaa" when I tap button number 1 there is a contact dialog (that gives the name instead of number for now but hey the dialog is working). heres one screenshot. yes, backspace is missing
sequential_presses = 0 last_key_pressed = None on_key_press(key): if key == last_key_pressed: seuqential_presses +=1 else: sequential_presses = 1 last_key_pressed = key if sequential_presses == 1: .. elif sequential_presses == 2: ..
letters = {} letters[2] = [_, 'a', 'b', 'c'] letters[3] = [_, 'd', 'e', 'f'] print letters[key][sequential_presses]