Table - Online Linux Manual PageSection : 3pm
Updated : 2020-11-09
Source : perl v5.32.0
Note : User Contributed Perl Documentation
NAMETk::Table − Scrollable 2 dimensional table of Tk widgets
SYNOPSIS use Tk::Table;
$table = $parent−>Table(−rows => number,
−columns => number,
−scrollbars => anchor,
−fixedrows => number,
−fixedcolumns => number,
−takefocus => boolean);
$widget = $table−>Button(...);
$old = $table−>put($row,$col,$widget);
$old = $table−>put($row,$col,"Text"); # simple Label
$widget = $table−>get($row,$col);
$cols = $table−>totalColumns;
$rows = $table−>totalRows;
$table−>see($widget);
$table−>see($row,$col);
($row,$col) = $table−>Posn($widget);
DESCRIPTIONTk::Table is an all-perl widget/geometry manager which allows a two dimensional table of arbitrary perl/Tk widgets to be displayed. Entries in the Table are simply ordinary perl/Tk widgets. They should be created with the Table as their parent. Widgets are positioned in the table using: $table−>put($row,$col,$widget)
If $widget is not a reference it is treated as a string, and a Lable widget is created with the string as its text. All the widgets in each column are set to the same width − the requested width of the widest widget in the column. Likewise, all the widgets in each row are set to the same height − the requested height of the tallest widget in the column. A number of rows and/or columns can be marked as 'fixed' − and so can serve as 'headings' for the remainder the rows which are scrollable. The requested size of the table as a whole is such that the number of rows specified by −rows (default 10), and number of columns specified by −columns (default 10) can be displayed. If the Table is told it can take the keyboard focus then cursor and scroll keys scroll the displayed widgets. −scrollbars. By default, scrollbars will be added nw. To disable scrollbars, set −scrollbars to an empty string: $table = $parent−>Table(−scrollbars => '', ...);
The table can be emptied using $table−>clear
the widgets which were in the table are destroyed. The Tk::Table widget is derived from a Tk::Frame, so inherits all its configure options. The default focus traversal is giving the focus only to the table widget as a whole. To enable focus traversal into table cells (e.g. if there are embedded entry widgets), then the option −takefocus has to be set to 0.
BUGS / Snags / Possible enhancements• Very large Tables consume a lot of X windows. • No equivalent of pack's −anchor/−pad etc. options
SEE ALSOTk::grid, Tk::HList, Tk::TableMatrix, Tk::MListbox, Tk::Columns 0
Johanes Gumabo
Data Size : 9,275 byte
man-Tk::Table.3pmBuild : 2024-12-05, 20:55 :
Visitor Screen : x
Visitor Counter ( page / site ) : 2 / 198,471
Visitor ID : :
Visitor IP : 18.117.119.34 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.
ERROR : Need New Coding : (parse_manual_page_|249|Tk::Table.3pm|36/37|el══─{─══.|.el══─{─══. ds -- \|\(em\|
) (htmlprn|149|Tk::Table.3pm|36/37|.el══─{─══. ds -- — |.el══─{─══. ds -- \|\(em\|
) (parse_manual_page_|249|Tk::Table.3pm|43|br══─}─══|'br══─}─══
) (htmlprn|149|Tk::Table.3pm|43|'br══─}─══ |'br══─}─══
)