def expandItemsRecursively(self, startItemId):
        result = True

        # Initial stack
        todo = deque()
        todo.append(startItemId)
        # Expands recursively
        while len(todo) > 0:
            idd = todo.pop()
            if (self.areChildrenAllowed(idd)
                    and not self.expandItem(idd, False)):
                result = False
            if self.hasChildren(idd):
                for c in self.getChildren(idd):
                    todo.append(c)

        self.requestRepaint()
        return result
Expands the items recursively
dataset/ETHPy150Open rwl/muntjac/muntjac/ui/tree.py/Tree.expandItemsRecursively