How to timeout when waiting for raw_input from user ?
Rune Strand
rune.strand at gmail.com
Sun Dec 6 15:54:37 EST 2009
On Dec 5, 3:42 pm, Maxim Khitrov <mkhit... at gmail.com> wrote:
> I'm not talking about the Timer, I'm talking about the original
> question. There's nothing (that I know of) you can do with a Timer on
> Windows to interrupt a raw_input call.
That is true. But if the issue here is to present a question, and
await answer for N seconds, before pusing next question, Timer() can
be used to call SendKeys() and have it send "{ENTER}" to raw_input.
http://www.rutherfurd.net/python/sendkeys/index.html
SendKeys is Win-only
More information about the Python-list
mailing list