def on_close(self, event):
    '\n        close the window containing this panel\n        '
    self.parent.Close()
    if (event is not None):
        event.Skip()
close the window containing this panel
def on_close(self, event):
    '\n        \n        '
    self.parent.Close()
    if (event is not None):
        event.Skip()