From: Kevin A. <al...@se...> - 2005-03-08 18:13:18
|
On Jan 6, 2005, at 9:04 AM, Brian Debuire wrote: > Hi everyone, > > I have a problem, well my app has child windows and each one has the > validation on closing like this: > > def on_close(self, event): > self.Show(0) > > but when I close any child window by clicking on the close window [X] > icon all the app shuts down. > > I dont know why this happens, and I dont this this happened before to > me. > > Thanks in advance, > > Brian > > PD: > > I am using PythonCard 0.8 and Python 2.3 on windows. > I just verified that an on_close handler works as expected on Windows and Mac using release 0.8.1. If event.skip() isn't called then the window isn't closed and calling event.skip(), most likely on your main application window allows the application to close normally after any other on_close handler code you want to do. ka |