Widget.isAncestor

Determines whether widget is somewhere inside ancestor, possibly with intermediate containers.

class Widget
bool
isAncestor

Parameters

ancestor Widget

another gtk.Widget

Return Value

Type: bool

TRUE if ancestor contains widget as a child, grandchild, great grandchild, etc.