class_docstr: This class draws a rectangular area. Right-clicking inside the area will
  raise a custom context menu which also includes the context menus of
  its parents.    
class_docstr_tok: ["This","class","draws","a","rectangular","area",".","Right-clicking","inside","the","area","will","raise","a","custom","context","menu","which","also","includes","the","context","menus","of","its","parents","."]
code: def paint(self, p, *args):
      p.setPen(self.pen)
      p.drawRect(self.boundingRect())
  
file_path: pyqtgraph/pyqtgraph/examples/contextMenu.py
imports: import pyqtgraph
  from pyqtgraph.Qt import QtCore, QtGui, QtWidgets
label_desc: Use image node_id 3 for calling the MenuBox obj's underlying member method code with example usage: obj.paint(p) without return types