WidgetPath.hasParent
bool hasParent(gobject.types.GType type)Returns true if any of the parents of the widget represented in path is of type type, or any subtype of it.
Parameters
type | widget type to check in parents |
Returns
true if any parent is of type type