def reposition_children_bodies(self):
        """Reposition body of all children.

        Works in each child which is a submenu; otherwise an
        attribute error is safely caught and ignored.
        """
        ### iterate over children checking presence of
        ### reposition_body method and executing it if it
        ### is present

        for item in self.children:

            ## store special method
            try:
                method = item.reposition_body

            ## if it doesn't exist, just pass
            except AttributeError:
                pass

            ## otherwise execute it
            else:
                method()
Reposition body of all children.

        Works in each child which is a submenu; otherwise an
        attribute error is safely caught and ignored.
        
nodezator/menu/behaviour.py