[Tutor] simple, probably stupid question: single key in console / idle

Alan Gauld alan.gauld at btinternet.com
Tue Apr 1 14:43:59 CEST 2008


"Sommer, Matthias" <Matthias.Sommer at wincor-nixdorf.com> wrote

> In the library reference I found "kbhit()" and "getch()" from 
> msvcrt.
> I import msvcrt (running on Windows) but I cant get it to run.
> Is ther somewhere a sample I could peek on?

You can look at the event handling topic in my tutor.
It goves an example of reading keys with getch()


-- 
Alan Gauld
Author of the Learn to Program web site
http://www.freenetpages.co.uk/hp/alan.gauld 




More information about the Tutor mailing list