code: def save_as(self):
          
          filename = splitext(self.filename)[0]
          filename, _ = QFileDialog.getSaveFileName(self, 'Export events',
                                                    filename)
          if filename == '':
              return
  
          self.filename = filename
          short_filename = short_strings(basename(self.filename))
          self.idx_filename.setText(short_filename)
docs: Dialog for getting name, location of dataset export.