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",">","`","."]
docstr: Return the numerical index of GraphicsItem object passed in
  
  Parameters
  ----------
  item : QGraphicsLayoutItem
      Item to query the index position of
  
  Returns
  -------
  int
      Index of the item within the graphics layout
  
  Raises
  ------
  ValueError
      Raised if item could not be found inside the GraphicsLayout instance.
docstr_tok: ["Return","the","numerical","index","of","GraphicsItem","object","passed","in","Parameters","--","--","--","--","--","item",":","QGraphicsLayoutItem","Item","to","query","the","index","position","of","Returns","--","--","--","-","int","Index","of","the","item","within","the","graphics","layout","Raises","--","--","--","ValueError","Raised","if","item","could","not","be","found","inside","the","GraphicsLayout","instance","."]
code: def itemIndex(self, item):
      """Return the numerical index of GraphicsItem object passed in
  
      Parameters
      ----------
      item : QGraphicsLayoutItem
          Item to query the index position of
  
      Returns
      -------
      int
          Index of the item within the graphics layout
  
      Raises
      ------
      ValueError
          Raised if item could not be found inside the GraphicsLayout instance.
      """
      for i in range(self.layout.count()):
          if self.layout.itemAt(i).graphicsItem() is item:
              return i
      raise ValueError(f"Could not determine index of item {item}")
  
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 13 for calling the GraphicsLayout obj's underlying member method code with example usage: obj.itemIndex(item) and returns: i