[wxPython-users] Application termination event

Phillip Stevens pmstevens at verizon.net
Fri May 18 07:56:22 PDT 2007


Hi Brian,

See the Veto methods described here:
http://www.wxpython.org/docs/api/wx.CloseEvent-class.html

---Phil

Friday, May 18, 2007, 11:49:38 AM, you wrote:

> How can I capture the close event when the application is suddenly 
> terminated, such as when a user clicks the X in the upper-right corner?
> (The purpose: ask the user if he wants to save his changes, and prevent
> the application from terminating if the user indicates so.)

> Thanks.
> Brian



> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wxPython-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail:
> wxPython-users-help at lists.wxwidgets.org





More information about the wxpython-users mailing list