4 Simple Questions About Python/IDLE

Diez B. Roggisch deets at nospam.web.de
Thu Sep 7 16:50:42 CEST 2006

Omar schrieb:
> thanks.
> i have saved and double clicked as suggested.  when I save and double
> click a simple "hello program", the b&w python shell briefly comes up,
> then disappears. is this how it should work?

Yes. because when your program terminates, the shell terminates. Or 
would you prefer it sticking around, cluttering screen space?

If you want it to stay,  make your program require a key-press in the 
end. something like this:

raw_input("press return")


More information about the Python-list mailing list