Re: How to catch windows shutdown/reboot message

2010-08-02 Thread rechardchen
于 2010-8-2 16:00, Tim Golden 写道: On 02/08/2010 02:17, rechardchen wrote: I'm writing a python script which runs as a windowsxp service. The problem is how to catch the windows shutdown/reboot message and do some cleaning job when system is going down? The atexit module and signal module

How to catch windows shutdown/reboot message

2010-08-01 Thread rechardchen
I'm writing a python script which runs as a windowsxp service. The problem is how to catch the windows shutdown/reboot message and do some cleaning job when system is going down? The atexit module and signal module on windows dont seems to work. I guess the python win32api may be of help, but I

Re: beginner python GUI question

2010-08-01 Thread rechardchen
于 2010-8-2 6:15, Chris Hare 写道: I hope I can explain this correctly. I have a GUI, which is already being processed by a mainloop. I want to be able to open a second window so the user can interact with specific information in the second window. I pulled together this code example from