code: def open_user_directory_path(self):
          
          # noinspection PyCallByClass,PyTypeChecker
          directory_name = QFileDialog.getExistingDirectory(
              self,
              self.tr('Results directory'),
              self.leUserDirectoryPath.text(),
              QFileDialog.ShowDirsOnly)
          if directory_name:
              self.leUserDirectoryPath.setText(directory_name)
docs: Open File dialog to choose the user directory path.