class_docstr: **Bases:** :class:`UIGraphicsItem <pyqtgraph.UIGraphicsItem>`
  
  Displays a rectangular grid of lines indicating major divisions within a coordinate system.
  Automatically determines what divisions to use.
class_docstr_tok: ["*","*","Bases",":","*","*",":","class",":","`","UIGraphicsItem","<","pyqtgraph.UIGraphicsItem",">","`","Displays","a","rectangular","grid","of","lines","indicating","major","divisions","within","a","coordinate","system",".","Automatically","determines","what","divisions","to","use","."]
code: def __init__(self, pen="default", textPen="default"):
      UIGraphicsItem.__init__(self)
      # QtWidgets.QGraphicsItem.__init__(self, *args)
      # self.setFlag(QtWidgets.QGraphicsItem.GraphicsItemFlag.ItemClipsToShape)
      # self.setCacheMode(QtWidgets.QGraphicsItem.CacheMode.DeviceCoordinateCache)
  
      self.opts = {}
  
      self.setPen(pen)
      self.setTextPen(textPen)
      self.setTickSpacing(x=[None, None, None], y=[None, None, None])
  
file_path: pyqtgraph/pyqtgraph/graphicsItems/GridItem.py
imports: import numpy
  from ..None import functions
  from ..None import getConfigOption
  from ..Point import Point
  from ..Qt import QtCore, QtGui
  from .UIGraphicsItem import UIGraphicsItem
label_desc: Use image node_id 1 to create a new GridItem object from inherited base classes: UIGraphicsItem with example: obj = GridItem(pen, textPen)