code: def _toggle_pane(self, pane):
          
  
          if pane.IsShown():
              pane.Hide()
          else:
              pane.Show()
  
          self.main_window._mgr.Update()
docs: Toggles visibility of given aui pane
  
          Parameters
          ----------
  
          pane: String
          \tPane name