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 paint(self, p, opt, widget):
      # p.setPen(QtGui.QPen(QtGui.QColor(100, 100, 100)))
      # p.drawRect(self.boundingRect())
      # UIGraphicsItem.paint(self, p, opt, widget)
      ### draw picture
      if self.picture is None:
          # print "no pic, draw.."
          self.generatePicture()
      p.drawPicture(QtCore.QPointF(0, 0), self.picture)
  
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 6 for calling the GridItem obj's underlying member method code with example usage: obj.paint(p, opt, widget) without return types