grid methods
The following methods are associated with widgets managed by
grid:
gridColumnconfigureConfigures the column specified by the first argument using
-weightand-minsizearguments. The-weightargument determines the amount of space to allocate to that column, and the-minsizeargument sets the minimum size in pixels. For example:$widget->gridColumnconfigure(3, -weight => 1);
gridRowconfigureConfigures the row specified by the first argument using
-weightand-minsizearguments. The-weightargument determines the amount of space to allocate to that row, and the-minsizeargument sets the minimum size in pixels. For example:$widget->gridRowconfigure(3, -weight => 1);
gridRemoveRemoves each of the
$slavesfromgridfor its master and unmaps their windows. The slaves will no longer be managed by thegridgeometry manager.gridRemoveremembers the previous configuration options for the window. So, if$slaveis managed once more by thegridgeometry manager, the previous values will be retained.gridBboxReturns the bounding box in pixels for the space occupied by the specified grid position (in the order of column, row). For example:
$widget->gridBbox(3,2);
gridForgetCauses the widget(s) to be removed from view. Additional widgets can be specified as arguments.
$widget1->gridForget($widget2, widget3, ...);
gridInfoReturns information about the widget in list format:
$widget->gridInfo;
gridLocationReturns the column and row of the widget nearest the specified x,y coordinates (in pixels): ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access