def accepted(self):
        """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.

        """
        #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()
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.