how to interrupt time.sleep ?
Dan Sommers
me at privacy.net
Tue Feb 22 17:04:26 EST 2005
On Tue, 22 Feb 2005 22:37:28 +0100,
BOOGIEMAN <BOOGIEMANPN at YAHOO.COM> wrote:
> I have line "time.sleep(60)" in my code
> How do I cancel waiting 60 seconds if I want to continue with program
> imediately ? Like "Press some button if you don't want to wait"
> If it can't be canceled what's the other solution to
> "wait certain time/or press any button to continue" problem ?
Use the select module.
HTH,
Dan
--
Dan Sommers
<http://www.tombstonezero.net/dan/>
μ₀ × ε₀ × c² = 1
More information about the Python-list
mailing list