Peter Hansen wrote:
> new pip wrote:
>> Actually I want to do some clean up (or operation) before the program
>> actually exits. Is there any way to do that?
>
> Ah, that's easier. :-)
>
> It might help (if this answer isn't sufficient) to post a snippet of
> code showing a very small example t
new pip wrote:
> Actually I want to do some clean up (or operation) before the program
> actually exits. Is there any way to do that?
Ah, that's easier. :-)
It might help (if this answer isn't sufficient) to post a snippet of
code showing a very small example that we could talk about. You might
>
>
>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
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: th