My program is running on windows and it is wrritten by Python and wxPython,
built by py2exe.
If my program is executed minimized, and the user want to shutdown or
reboot.
Meanwhile, my program is running and it has several threads running, too.
The shutdown or reboot will cause a error of my
On 6/22/05, Austin [EMAIL PROTECTED] wrote:
My program is running on windows and it is wrritten by Python and wxPython,
...
Is there any way to dectect windows shutdown or reboot?
Will wx.EVT_END_SESSION or wx.EVT_QUERY_END_SESSION help?
- kv
--
There is an event that win32 sends to each thread to tell it to shut
down. You can grab that with the win32all extension (I am not on
windows right now so I can't look it up in the documentation).
-Chris
On 6/22/05, Konstantin Veretennicov [EMAIL PROTECTED] wrote:
On 6/22/05, Austin [EMAIL
Austin [EMAIL PROTECTED] schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
|I wrote a GUI program with wxPython.
| The error message is:
|
| Unhandled exception
| An unhandled exception occured. Press Abort to terminate the program,
| Retry to exit the program normally and Ignore to try to continue.
I wrote a program running on windows.
I put the link of the program in Start up folder and let it executed
minimized.
Every time when I open the computer, my program will be running in system
tray.
But if the user would like to shutdown the computer, the OS will show an
error about exception.
Programs that start at boot, run until shutdown and run in
background all the time under Windows are good candidates
for being turned into Windows Services. They respond to
shutdown commands properly and can be fine-grained scheduled
as well. For tutorial pick of a copy of Python Programming
on
Austin wrote:
I wrote a program running on windows.
I put the link of the program in Start up folder and let it executed
minimized.
Every time when I open the computer, my program will be running in system
tray.
But if the user would like to shutdown the computer, the OS will show an
error
I wrote a GUI program with wxPython.
The error message is:
Unhandled exception
An unhandled exception occured. Press Abort to terminate the program,
Retry to exit the program normally and Ignore to try to continue.
Actually, besides the main program, there is another thread running
background.