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 getTargetRect(self):
      if isinstance(self.item, GraphicsScene):
          return self.item.getViewWidget().rect()
      else:
          return self.item.mapRectToDevice(self.item.boundingRect())
  
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 9 for calling the Exporter obj's underlying member method code with example usage: obj.getTargetRect() and returns: self, self