I have one PM in one wap game for mobile phones, but the problem is, that it's writen in Lithuanian, not english and has few game functiions inserted in it, so I don't know how much of a use it would be for you. If I'll have time on weekend, I can try to cut it up and to put it in one file and make some translations.
But it may have bugs, because the game is not released. PM had functions like inbox, write, delete and i don't remember, but it might have outbox, foreword, inbox wault for storing important messages, auto delete read mails after 30 days or so.
root = tkinter.Tk()
buttons=[i for i in range(10)]
#If specific button is pressed, output "YES"
for num in buttons: