code: def accepted(self):
          
          #return super(DataFrameExportDialog, self).accepted
          try:
              self._saveModel()
          except Exception as err:
              self._statusBar.showMessage(str(err))
              raise
          else:
              self._resetWidgets()
              self.exported.emit(True)
              self.accept()
docs: Successfully close the widget and emit an export signal.
  
          This method is also a `SLOT`.
          The dialog will be closed, when the `Export Data` button is
          pressed. If errors occur during the export, the status bar
          will show the error message and the dialog will not be closed.