If you’re just going to use the frame’s “x” button at the top right, then don’t bother setting up an event handler. That’s already built-in. The primary reason for binding to EVT_CLOSE is if you need to do something special when you close the frame, such as asking the user if they “really” want to do that or to do some clean-up like closing a database connection.
Remove the self.Bind and the handler and it should work as expected. If you want to create a close button, bind to EVT_BUTTON and in your handler, use self.Close().
Mike Driscoll
Removing the self.Bind & handler still did not allow me to close the frame