set_parent
Description:
This function is useful only when implementing subclasses of Widget.
Sets parent
as the parent widget of this, and takes care of some details such as updating the
state and style of the child to reflect its new location and resizing the parent. The opposite function is
unparent.
Parameters:
this |
a Widget |
parent |
parent widget |