code: def on_directory_button_clicked(self):
          
          # noinspection PyCallByClass,PyTypeChecker
          self.output_directory.setText(QFileDialog.getExistingDirectory(
              self, self.tr('Select download directory')))
docs: Show a dialog to choose directory.
  
          .. versionadded: 3.3