code: def _submit_to_github(self):
          
          # Get reference to the main window
          if self.parent() is not None:
              if getattr(self.parent(), 'main', False):
                  # This covers the case when the dialog is attached
                  # to the internal console
                  main = self.parent().main
              else:
                  # Else the dialog is attached to the main window
                  # directly
                  main = self.parent()
          else:
              main = None
  
          # Getting description and traceback
          title = self.title.text()
          description = self.input_description.toPlainText()
          traceback = self.error_traceback[:-1]  # Remove last EOL
  
          # Render issue
          if main is not None:
              issue_text = main.render_issue(description=description,
                                             traceback=traceback)
          else:
              issue_text = description
  
          try:
              if main is None:
                  org = 'ccordoba12'
              else:
                  org = 'spyder-ide'
              github_backend = GithubBackend(org, 'spyder', parent_widget=main)
              github_report = github_backend.send_report(title, issue_text)
              if github_report:
                  self.close()
          except Exception:
              ret = QMessageBox.question(
                        self, _('Error'),
                        _("An error occurred while trying to send the issue to "
                          "Github automatically. Would you like to open it "
                          "manually?<br><br>"
                          "If so, please make sure to paste your clipboard "
                          "into the issue report box that will appear in a new "
                          "browser tab before clicking <i>Submit</i> on that "
                          "page."))
              if ret in [QMessageBox.Yes, QMessageBox.Ok]:
                  QApplication.clipboard().setText(issue_text)
                  issue_body = (
                      " \n<!---   *** BEFORE SUBMITTING: PASTE CLIPBOARD HERE "
                      "TO COMPLETE YOUR REPORT ***   ---!>\n")
                  if main is not None:
                      main.report_issue(body=issue_body, title=title,
                                        open_webpage=True)
                  else:
                      pass
docs: Action to take when pressing the submit button.