Вопрос

I have wxpython multi threaded app, bundled using py2exe, that keep running silently as a task-bar application under windows system tray. When I shutdown Windows, it shows following error message:

Error screen http://devzila.com/error.jpg

Это было полезно?

Решение 2

I'm able to figure it out: wx.EVT_END_SESSION is fired when windows try to close your application during shutdown.

wx.GetApp().Bind(wx.EVT_END_SESSION, self.onClose)

Другие советы

Bind wx.EVT_CLOSE event for your application frame. In the callback function end all threads.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top