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: Call setExportMode(export, opts) on all items that will 
  be painted during the export. This informs the item
  that it is about to be painted for export, allowing it to 
  alter its appearance temporarily
  
  
  *export*  - bool; must be True before exporting and False afterward
  *opts*    - dict; common parameters are 'antialias' and 'background'
docstr_tok: ["Call","setExportMode","(","export",",","opts",")","on","all","items","that","will","be","painted","during","the","export",".","This","informs","the","item","that","it","is","about","to","be","painted","for","export",",","allowing","it","to","alter","its","appearance","temporarily","*","export","*","-","bool",";","must","be","True","before","exporting","and","False","afterward","*","opts","*","-","dict",";","common","parameters","are","'antialias","'","and","'background","'"]
code: def setExportMode(self, export, opts=None):
      """
      Call setExportMode(export, opts) on all items that will
      be painted during the export. This informs the item
      that it is about to be painted for export, allowing it to
      alter its appearance temporarily
  
  
      *export*  - bool; must be True before exporting and False afterward
      *opts*    - dict; common parameters are 'antialias' and 'background'
      """
      if opts is None:
          opts = {}
      for item in self.getPaintItems():
          if hasattr(item, "setExportMode"):
              item.setExportMode(export, opts)
  
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 10 for calling the Exporter obj's underlying member method code with example usage: obj.setExportMode(export, opts) without return types