TableMatrix::Spreadsheet(3)
π NAME π
Okay bestie, welcome to TableMatrix::Spreadsheet(3) from the perl/Tk docs β aka Tk::TableMatrix::Spreadsheet, which is literally a table display with spreadsheet-like bindings. π
β¨ SYNOPSIS β¨
Hereβs the starter pack, bestie:
use Tk;
use Tk::TableMatrix::Spreadsheet;
my $t = $top->Scrolled('Spreadsheet',
-rows => 21, -cols => 11,
-width => 6, -height => 6,
-titlerows => 1, -titlecols => 1,
-variable => $arrayVar,
-selectmode => 'extended',
-bg => 'white',
);
πΈ DESCRIPTION πΈ
Tk::TableMatrix::Spreadsheet is a Tk::TableMatrix-derived widget that implements some bindings so the resulting widget behaves more like a spreadsheet. No cap, itβs giving spreadsheet main character energy. π
π Bindings Added π
- Row/Col resize handles β these appear when the cursor is placed over a row/col border line in the rol/col title area. Dragging these handles will resize the row or column. If multiple rows or columns are selected, then the new row/col size will apply to all row/cols selected. β¨
Note: With the base Tk::TableMatrix, it is possible to resize the row/cols by dragging on any cell border. To be more spreadsheet-like, Tk::TableMatrix::Spreadsheet defaults to enable row/col resizing only thru the title row/col dragging. To override this default behavoir, set the -resizeborder option to 'both' at startup. π«Ά
- Popup menu β a row/col insert/delete popup menu appears when the mouse is right-clicked in the row/col title areas. π±οΈ
- Cell activation β cells activate (i.e. the contents become edit-able) only when the cell is double-clicked or the
F2button is pressed. The defaultTk::TableMatrixbehavior is for the cell to be activated when the cell is single-clicked. β Escapekey β causes any changes made to a cell to be canceled and the current selection cleared. πreturnkey β causes the current cell to move down. β¬οΈtab(orshift tab) key β causes the current cell to be moved to the right (left). β‘οΈβ¬ οΈdeletekey β will delete the current selection, if no cell is currently active. π- Mouse button 2 (middle button) β paste from the
PRIMARY. (Control-vpastes from the clipboard). π«Ά
π¦ Additional Information π¦
Widget methods, options, etc, are inherited from the Tk::TableMatrix widget. See its docs for additional information β the docs are your bestie here, fr fr. π
Thatβs the whole vibe: Tk1.29, dated 2023-05-11 β catch you in the group chat, bestie. ππ
π¦ where this page comes from
- opensuse-leap 16.0: perl-Tk-TableMatrix 1.29-bp160.1.13 Β· (Artistic-1.0 OR GPL-1.0-or-later) AND TCL
- opensuse-leap 16.0: perl-Tk-TableMatrix 1.29-bp160.1.13 Β· (Artistic-1.0 OR GPL-1.0-or-later) AND TCL
- opensuse-leap 16.0: perl-Tk-TableMatrix 1.29-bp160.1.13 Β· (Artistic-1.0 OR GPL-1.0-or-later) AND TCL
- opensuse-leap 16.0: perl-Tk-TableMatrix 1.29-bp160.1.13 Β· (Artistic-1.0 OR GPL-1.0-or-later) AND TCL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms