[Tutor] Moving right along ...

Wesley J. Chun wesc@alpha.ece.ucsb.edu
Sat, 4 Mar 2000 02:22:14 -0800 (PST)


    > Date: Sat, 4 Mar 2000 11:35:05 +0200 (IST)
    > From: Moshe Zadka <moshez@math.huji.ac.il>
    > 
    > On Fri, 3 Mar 2000, Robin B. Lake wrote:
    > 
    > > Thanks to the several who replied to my earlier questions.
    > > 
    > > Now, how do I keep the program from "running off the end"?  I
    > > launch the source by double-clicking (Mac) and the code runs
    > > well, but the Python window closes before I can read the output!
    > 
    > Try 
    > 
    > import time
    > time.sleep(30)


on Windoze and perhaps the Mac, you can also try:

raw_input('press RETURN to close') at the end,
or just plain raw_input() for short.  the window
won't close until a keypress is received.

-wesley