
10. Perl/Tk Widgets 59
TixGrid
This widget displays its contents in a two-dimensional grid of
cells. Each cell may contain one Tix display item, which may
be in text, graphics, or other formats. Individual cells, or
groups of cells, can be formatted with a wide range of
attributes, such as color, relief, and border.
-browsecmd => callback
Invokes the callback with the selected entry when it’s
browsed. The callback is passed two additional parame-
ters: x and y, the location of the cell.
-command => callback
Invokes the callback with the selected entry when it’s
activated.
-editdonecmd => callback
Invokes the callback with the selected entry when it’s
edited. The callback is passed two additional parameters:
x and y, the location of the cell.
-editnotifycmd => callback
Invokes the callback with the selected entry when an
attempt is made to edit a cell. The callback is passed two
additional parameters: x and y, the location of the cell.
Return true if the cell is editable.
-floatingcols => integer
Number of columns that are fixed when the widget is hor-
izontally scrolled. These columns can be used as labels for
-background -pady
-borderwidth -relief
-cursor -selectbackground
-exportselection -selectborderwidth
-font -selectforeground
-foreground -state
-height -takefocus
-highlightbackground -width
-highlightcolor -xscrollcommand
-highlightthickness -yscrollcommand
-padx