

def insert_after(self, after, item):
    ' Inserts an item into the group after the specified item.\n\n        Parameters\n        ----------\n        before : ActionManagerItem\n            The item to insert after.\n        item : ActionManagerItem, Action or callable\n            The item to insert.\n\n        Returns\n        -------\n        index, item : int, ActionManagerItem\n            The position inserted, and the item actually inserted.\n\n        Notes\n        -----\n\n        If the item is an ActionManagerItem instance it is simply inserted.\n        If the item is an Action instance, an ActionItem is created for the\n        action, and that is inserted.  If the item is a callable, then an\n        Action is created for the callable, and then that is handled as above.\n        '
    index = index._items.index(after)
    self.insert((index + 1), item)
    return (index, item)

dataset/ETHPy150Open enthought/pyface/pyface/action/group.py Group.insert_after/VarMisuse@18/277 `self`->`index`