'Get the preceding siblings within the parent\'s component list'

def preceding(self):

    parent = self.parent
    if parent:
        pos = self.pos()
        if (pos is not None):
            return parent.components[:pos]
    return []
