class_docstr: Used for laying out GraphicsWidgets in a grid.
  This is usually created automatically as part of a :class:`GraphicsLayoutWidget <pyqtgraph.GraphicsLayoutWidget>`.
class_docstr_tok: ["Used","for","laying","out","GraphicsWidgets","in","a","grid",".","This","is","usually","created","automatically","as","part","of","a",":","class",":","`","GraphicsLayoutWidget","<","pyqtgraph.GraphicsLayoutWidget",">","`","."]
code: def __init__(self, parent=None, border=None):
      GraphicsWidget.__init__(self, parent)
      if border is True:
          border = (100, 100, 100)
      elif border is False:
          border = None
      self.border = border
      self.layout = QtWidgets.QGraphicsGridLayout()
      self.setLayout(self.layout)
      self.items = (
          {}
      )  ## item: [(row, col), (row, col), ...]  lists all cells occupied by the item
      self.rows = (
          {}
      )  ## row: {col1: item1, col2: item2, ...}    maps cell location to item
      self.itemBorders = (
          {}
      )  ## {item1: QtWidgets.QGraphicsRectItem, ...} border rects
      self.currentRow = 0
      self.currentCol = 0
      self.setSizePolicy(
          QtWidgets.QSizePolicy(
              QtWidgets.QSizePolicy.Policy.Expanding,
              QtWidgets.QSizePolicy.Policy.Expanding,
          )
      )
  
imports: from ..None import functions
  from ..Qt import QtWidgets
  from .GraphicsWidget import GraphicsWidget
  from .LabelItem import LabelItem
  from .PlotItem import PlotItem
  from .ViewBox import ViewBox
label_desc: Use image node_id 1 to create a new GraphicsLayout object from inherited base classes: GraphicsWidget with example: obj = GraphicsLayout(parent, border)