4 Simple Questions About Python/IDLE
Diez B. Roggisch
deets at nospam.web.de
Thu Sep 7 10:50:42 EDT 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")
Diez
More information about the Python-list
mailing list