[Tutor] (no subject)

alan.gauld@bt.com alan.gauld@bt.com
Mon, 27 Nov 2000 17:20:04 -0000


> i was wondering if its possible in python to be able to read 
> the keystrokes from a keyboard??

Yes but it's platform dependent at present.

A Tkinter solution is presented in my tutor:

http://www.crosswinds.net/~agauld/

Look under Advanced Topics at "Event Driven Systems"
the second example.

The msvcrt(sp?) module does it for Windoze, curses does 
it on *nix

HTH,

Alan g.