Widget.setParent
void setParent(gtk.widget.Widget parent)Sets parent as the parent widget of widget.
This takes care of details such as updating the state and style of the child to reflect its new location and resizing the parent. The opposite function is [gtk.widget.Widget.unparent].
This function is useful only when implementing subclasses of [gtk.widget.Widget].
Parameters
parent | parent widget |