
90 Perl/Tk Pocket Reference
The grid Command
$widget->grid(?-option => value ... ?);
Details how $widget should be managed by the gridder.
$master->gridBbox(column, row);
Returns an approximate bounding box in pixels of space
occupied by column, row.
$master->gridColumnconfigure(column ?, -minsize =>
size??, -weight => int ??,-pad => int ?);
Set/get minimum column size, relative column weight,
and column padding.
$slave->gridForget;
Removes (and unmaps)
$slave from grid of its master.
$slave->gridInfo;
Returns list describing configuration state of
$slave.
$master->gridLocation(x, y);
Returns column and row containing screen units x, y in
$master. If x, y is outside grid, -1 is returned.
$master->gridPropagate(?boolean?);
Set/get whether
$master tries to resize its ancestor win-
dows to fit grid.
$master->gridRemove(slave ?, slave?);
Removes (and unmaps) each slave from grid remember-
ing its configuration.
$master->gridRowconfigure(row ?, -minsize => size??,
-weight => int ? ?, -pad => int ?);
Set/get minimum row size, relative row weight, and row
padding.
-column => n -padx => amount
-columnspan => n -pady => amount
-in => other -row => n
-ipadx => amount -rowspan => n
-ipady => amount -sticky => ?
n| s| e| w| ns| ew ?