def METHOD_NAME(self, event):
    TogglePanel.METHOD_NAME(self, event)
    h = self.header_panel.GetSize()[1] + 4
    if self.IsCollapsed():
        self.old_pos = self.parent.GetSashPosition()
        self.parent.SetMinimumPaneSize(h)
        self.parent.SetSashPosition(h * -1, True)
        self.parent.SetSashInvisible(True)
    else:
        self.parent.SetSashInvisible(False)
        self.parent.SetMinimumPaneSize(200)
        self.parent.SetSashPosition(self.old_pos, True)