class_docstr: **Bases:** :class:`GLGraphicsItem <pyqtgraph.opengl.GLGraphicsItem.GLGraphicsItem>`
  
  Displays a wire-frame grid. 
class_docstr_tok: ["*","*","Bases",":","*","*",":","class",":","`","GLGraphicsItem","<","pyqtgraph.opengl.GLGraphicsItem.GLGraphicsItem",">","`","Displays","a","wire-frame","grid","."]
code: def paint(self):
      self.setupGLState()
  
      if self.antialias:
          glEnable(GL_LINE_SMOOTH)
          glEnable(GL_BLEND)
          glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA)
          glHint(GL_LINE_SMOOTH_HINT, GL_NICEST)
  
      glBegin(GL_LINES)
  
      x, y, z = self.size()
      xs, ys, zs = self.spacing()
      xvals = np.arange(-x / 2.0, x / 2.0 + xs * 0.001, xs)
      yvals = np.arange(-y / 2.0, y / 2.0 + ys * 0.001, ys)
      glColor4f(*self.color().getRgbF())
      for x in xvals:
          glVertex3f(x, yvals[0], 0)
          glVertex3f(x, yvals[-1], 0)
      for y in yvals:
          glVertex3f(xvals[0], y, 0)
          glVertex3f(xvals[-1], y, 0)
  
      glEnd()
  
file_path: pyqtgraph/pyqtgraph/opengl/items/GLGridItem.py
imports: from OpenGL.GL import *
  import numpy
  from ...None import QtGui
  from ...None import functions
  from ..GLGraphicsItem import GLGraphicsItem
label_desc: Use image node_id 8 for calling the GLGridItem obj's underlying member method code with example usage: obj.paint() without return types