code: def 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.