[wxPython-users] Re: Application termination event

Brian Wolf brian.wolf at activustech.com
Fri May 18 09:11:29 PDT 2007


Thanks, that did it.

Christian K wrote:
> Brian Wolf 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.)
> 
> catch the wx.EVT_CLOSE event of the frame
> 
> Christian
> 
> 
> ---------------------------------------------------------------------
> 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