code: def indexByComponent(self, component):
          
          for row, rowcontents in enumerate(self._segments):
              if component in rowcontents:
                  column = rowcontents.index(component)
                  return (row, column)
docs: Returns a location for the given component, or None if
          it is not in the model
  
          :param component: Component to get index for
          :type component: :class:`AbstractStimulusComponent<sparkle.stim.abstract_component.AbstractStimulusComponent>`
          :returns: (int, int) -- (row, column) of component