[Tutor] simple, probably stupid question: single key in console / idle
Alan Gauld
alan.gauld at btinternet.com
Tue Apr 1 22:29:10 CEST 2008
"Alan Gauld" <alan.gauld at btinternet.com> wrote
>> I import msvcrt (running on Windows) but I cant get it to run.
>> Is ther somewhere a sample I could peek on?
>
I just noticed the bit about IDLE in the subject.
msvcrt only works in a DOS console it won't work in
IDLE because IDLE is detecting the keyboard events
as GUI events within Tkinter. You will need to run
your code in a command console not IDLE.
--
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