class_docstr: Abstract class used for exporting graphics to file / printer / whatever.
class_docstr_tok: ["Abstract","class","used","for","exporting","graphics","to","file","\/","printer","\/","whatever","."]
code: def fileSaveDialog(self, filter=None, opts=None):
      ## Show a file dialog, call self.export(fileName) when finished.
      if opts is None:
          opts = {}
      self.fileDialog = FileDialog()
      self.fileDialog.setFileMode(
          QtWidgets.QFileDialog.FileMode.AnyFile
      )
      self.fileDialog.setAcceptMode(
          QtWidgets.QFileDialog.AcceptMode.AcceptSave
      )
      if filter is not None:
          if isinstance(filter, str):
              self.fileDialog.setNameFilter(filter)
          elif isinstance(filter, list):
              self.fileDialog.setNameFilters(filter)
      global LastExportDirectory
      exportDir = LastExportDirectory
      if exportDir is not None:
          self.fileDialog.setDirectory(exportDir)
      self.fileDialog.show()
      self.fileDialog.opts = opts
      self.fileDialog.fileSelected.connect(self.fileSaveFinished)
      return
  
file_path: pyqtgraph/pyqtgraph/exporters/Exporter.py
imports: import os
  import re
  from ..GraphicsScene import GraphicsScene
  from ..Qt import QtCore, QtWidgets
  from ..widgets.FileDialog import FileDialog
label_desc: Use image node_id 5 for calling the Exporter obj's underlying member method code with example usage: obj.fileSaveDialog(filter, opts) without return types