Re: Is there a simple way to exit a while loop on keystroke?



On Aug 31, 11:11 am, gsxg <rha...@xxxxxxxxx> wrote:
Thanks,
The curses library doesn't look to helpful to me. However using CTRL-
C is fine and is working nicely.

BTW, it should be "time.sleep(1)" in the example above, instead of
just
"sleep(1)" (Just in case any other newbies like me read this)

Thanks again

Depends on how you import 'time'

import time
time.sleep(1)

from time import sleep
sleep(1)

~Sean

.



Relevant Pages

  • Re: pleeeeze, somebody ride my bike.....
    ... Only recently began to sleep well. ... sailboat just sitting there out by the lake? ... intensive post OP physical therapy. ... Btw, I'll be 64 in less than 2 weeks. ...
    (rec.motorcycles)
  • Re: ? about file() and open()
    ... Sean wrote: ... Which isn't a function, btw: ... the object, as you see, is a type (besides calling it to instantiate it, ... You should use 'file' when you're subclassing, ...
    (comp.lang.python)
  • Re: Arjuna: Into the Another World OST ~ Question...
    ... Never mind, I just noticed that the track is included, well, sort of. ... Comparing the import and domestic version's running times of the two ... Great music, BTW! ... Sean ...
    (rec.arts.anime.music)
  • Re: really bad pain
    ... BTW: My pain Doc tells there will be a chip ready within or in about 5 ... I had my sleep study on the 9th and I am ... my eyes open but I can't sleep at all because of my feet. ...
    (alt.support.chronic-pain)
  • RE: extracting mouse coordinate
    ... Opps sorry - lol - not enough sleep. ... "Paul" wrote: ... > Btw, what you meant was AND bit operation, right? ...
    (microsoft.public.dotnet.framework.windowsforms)