how to check if a frame was exited by the user clicking the close button?
===

how to can I check if a frame was exited by the user clicking the close button. I need to know because I have two wx.frames, a child and parent. When the parent frame is closed the how do I close the child frame? 
I'm using wxpython 