class_docstr: Simple PushButton extension that paints a QPainterPath centered on its face.
      
code: def __init__(
      self,
      parent=None,
      path=None,
      pen="default",
      brush=None,
      size=(30, 30),
      margin=7,
  ):
      QtWidgets.QPushButton.__init__(self, parent)
      self.margin = margin
      self.path = None
      if pen == "default":
          pen = "k"
      self.setPen(pen)
      self.setBrush(brush)
      if path is not None:
          self.setPath(path)
      if size is not None:
          self.setFixedWidth(size[0])
          self.setFixedHeight(size[1])
  
file_path: pyqtgraph/pyqtgraph/widgets/PathButton.py
imports: from ..None import functions
  from ..Qt import QtCore, QtGui, QtWidgets
label_desc: Use image node_id 1 to create a new PathButton object from inherited base classes: QtWidgets with example: obj = PathButton(parent, path, pen, brush, size, margin)