msvcrt.getch() not working within IDLE

Joe Smith JoeSmith at bogusaddress.com
Thu Oct 26 02:06:26 EDT 2000


I would expect these calls to fail in a GUI program because I suspect (don't
feel like researching it) that they get input from a console window only not
from a GUI program.  These calls are also windows specific, you might want to
look at other calls that are platform independent.

John Bedal wrote:

> Does msvcrt.getch() not work within the IDLE/Win98? it continuosly returns
> chr(255)
>
> Even msvcrt.kbhit() always returns false.  Is there something I am doing
> wrong?
>
> -John




More information about the Python-list mailing list