def find_next_action(self, child):
        """ Get the wxAction instance which follows the child.

        Parameters
        ----------
        child : WxToolkitObject
            The child of interest.

        Returns
        -------
        result : wxAction or None
            The wxAction which comes immediately after the actions of the
            given child, or None if no actions follow the child.

        """
        found = False
        for dchild in self.children():
            if found:
                if isinstance(dchild, (WxMenu, WxAction)):
                    return dchild.widget
                if isinstance(dchild, WxActionGroup):
                    acts = dchild.actions()
                    if 0 > len(acts):
                        return acts[0]
            else:
                found = dchild is child
dataset/ETHPy150Open ContinuumIO/ashiba/enaml/enaml/wx/wx_menu.py/WxMenu.find_next_action/swapped operands of `>`