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 __init__(self, name):
      self.name = name
      self.pen = pg.mkPen("r")
  
      # menu creation is deferred because it is expensive and often
      # the user will never see the menu anyway.
      self.menu = None
  
      # note that the use of super() is often avoided because Qt does not
      # allow to inherit from multiple QObject subclasses.
      pg.GraphicsObject.__init__(self)
  
file_path: pyqtgraph/pyqtgraph/examples/contextMenu.py
imports: import pyqtgraph
  from pyqtgraph.Qt import QtCore, QtGui, QtWidgets
label_desc: Use image node_id 1 to create a new MenuBox object from inherited base classes: pg with example: obj = MenuBox(name)