def _element_in_child_binder(root, e):
 return any((x.typeid.startswith('bind:') for x in root.path_to(e)))

def _element_in_child_binder ( root , e ) : return any ( ( x . typeid . startswith ( 'bind:' ) for x in root . path_to ( e ) ) )
detect if the element is trapped inside a nested bind: tag relative to e :type root: uielement :type e: uielement :rtype: bool .