Re: Detect console close

2005-05-16 Thread Duncan Booth
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

Re: Detect console close

2005-05-16 Thread Peter Hansen
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

RE: Detect console close

2005-05-16 Thread new pip
> > >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

Re: Detect console close

2005-05-16 Thread Peter Hansen
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