':returns: the nearest child with given type ID or ``None``
:rtype: :class:`UIElement`, None'

def find_type(self, typeid):

    r = self.nearest((lambda x: (x.typeid == typeid)))
    return (r[0] if (len(r) > 0) else None)
