class_docstr: Button graphicsItem displaying an image.
class_docstr_tok: ["Button","graphicsItem","displaying","an","image","."]
code: def paint(self, p, *args):
      p.setRenderHint(p.RenderHint.Antialiasing)
      tgtRect = QtCore.QRectF(0, 0, self._width, self._width)
      srcRect = QtCore.QRectF(self.pixmap.rect())
      p.drawPixmap(tgtRect, self.pixmap, srcRect)
  
file_path: pyqtgraph/pyqtgraph/graphicsItems/ButtonItem.py
imports: from ..Qt import QtCore, QtGui
  from .GraphicsObject import GraphicsObject
label_desc: Use image node_id 8 for calling the ButtonItem obj's underlying member method code with example usage: obj.paint(p) without return types