Anyone know of a way to get non-blocking keyboard input?
Chris Gonnerman
chris.gonnerman at usa.net
Wed Feb 28 08:57:14 EST 2001
DOH! Boy did I send him the long way around! <slap self>
----- Original Message -----
From: "David Fuess" <fuess at att.net>
Subject: Re: Anyone know of a way to get non-blocking keyboard input?
> Assuming you are on a Windows platform ...
>
> --- Begin Demo Script
> from msvcrt import *
>
> ch = 0
> while ch != 'x':
> if kbhit():
> ch = getch()
> print ch
> --- End Demo Script
>
> Dave
More information about the Python-list
mailing list