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

2008-04-01 Thread Alan Gauld
"Alan Gauld" <[EMAIL PROTECTED]> 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 key

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

2008-04-01 Thread Alan Gauld
"Sommer, Matthias" <[EMAIL PROTECTED]> 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

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

2008-04-01 Thread Sommer, Matthias
Hello, I'm just starting programming in Python. ATM I do write some smaller practices. In them I want to read single keys, if pressed. If none pressed I do not want to wait. In the library reference I found "kbhit()" and "getch()" from msvcrt. I import msvcrt (running on Windows) but I cant