WidgetPath.hasParent

bool hasParent(gobject.types.GType type) nothrow

Returns true if any of the parents of the widget represented in path is of type type, or any subtype of it.

Parameters

typewidget type to check in parents

Returns

true if any parent is of type type