def METHOD_NAME(self, checked):
    chosen_dir = QFileDialog.getExistingDirectory(
        self.window(), tr("Please select the directory containing the files"), "", QFileDialog.ShowDirsOnly
    )
    if not chosen_dir:
        return
    self.dialog_widget.file_export_dir.setText(chosen_dir)