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","."]
docstr: If *fileName* is None, pop-up a file dialog.
  If *toBytes* is True, return a bytes object rather than writing to file.
  If *copy* is True, export to the copy buffer rather than writing to file.
docstr_tok: ["If","*","fileName","*","is","None",",","pop-up","a","file","dialog",".","If","*","toBytes","*","is","True",",","return","a","bytes","object","rather","than","writing","to","file",".","If","*","copy","*","is","True",",","export","to","the","copy","buffer","rather","than","writing","to","file","."]
code: def export(self, fileName=None, toBytes=False, copy=False):
      """
      If *fileName* is None, pop-up a file dialog.
      If *toBytes* is True, return a bytes object rather than writing to file.
      If *copy* is True, export to the copy buffer rather than writing to file.
      """
      raise Exception("Abstract method must be overridden in subclass.")
  
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 4 for calling the Exporter obj's underlying member method code with example usage: obj.export(fileName, toBytes, copy) without return types