By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,992 Members | 967 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,992 IT Pros & Developers. It's quick & easy.

Detect console close

P: n/a
In Windows, when I double click on my .py file, the program runs with
a console. How can I detect when the console is closed? Any code
samples are appreciated.

Thank you.
Jul 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
new pip wrote:
In Windows, when I double click on my .py file, the program runs with
a console. How can I detect when the console is closed? Any code
samples are appreciated.


When the console has closed, your program has already exited, if I
understand you correctly (which isn't certain: the question seems
vague). How would you expect to "detect" this with code if your code is
no longer running?

Maybe you should also explain what you're really trying to accomplish,
as there maybe other ways of doing it, or other solutions to your problem.

-Peter
Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.