code: def toggle_help(self, event, mode=None):
          
          # if mode == 'open', show no matter what.
          # if mode == 'close', close.  otherwise, change state
          btn = self.toggle_help_btn
          shown = self.help_msg_boxsizer.GetStaticBox().IsShown()
          # if mode is specified, do that mode
          if mode == 'open':
              self.help_msg_boxsizer.ShowItems(True)
              btn.SetLabel('Hide help')
          elif mode == 'close':
              self.help_msg_boxsizer.ShowItems(False)
              btn.SetLabel('Show help')
          # otherwise, simply toggle states
          else:
              if shown:
                  self.help_msg_boxsizer.ShowItems(False)
                  btn.SetLabel('Show help')
              else:
                  self.help_msg_boxsizer.ShowItems(True)
                  btn.SetLabel('Hide help')
          self.do_fit(None)
docs: Show/hide help message on help button click.