[Tutor] Tkinter and keyboard output

Alan Gauld alan.gauld at freenet.co.uk
Thu Mar 24 22:31:40 CET 2005


> What if instead of coding <Alt-p>, I coded <Alt-Key>  - how would
> I implement the function which would allow the code to determine
> which 'Key' was pressed after Alt?

There is probably a more correct way of doing it but I'd simply write
a small test application that printed out the key values, then type
in the Alt-Key combinations and write down whatever gets displayed...
I'd then check for the values in my real program.

But as I said, there is probably a more scientific approach! :-)

Alan G.



More information about the Tutor mailing list