parent_widget_by_class

parent_widget_by_class(widget, class_)

Return widget or one of its parents matching the class_