in reply to TK listbox escape text
BTW Tk::GridColumns can also become sortable, scrollable and editable, see EXAMPLES#!/usr/bin/env perl use strict; use warnings; use Tk; use Tk::GridColumns; my $mw = Tk::MainWindow->new(-title => 'ENV'); my $gc = $mw->GridColumns( # -data => [map {[$_, $ENV{$_}]} keys %ENV], -data => [['cherry', 'red fruit'], ['carrot', 'orange vegetable']] +, -columns => [{-text => 'Name'}, {-text => 'Value'} ], -colattr => {-anchor => 'w'}, -itemattr => {-anchor => 'w'}, )->pack( -fill => 'both', -expand => 1, ); $mw->MainLoop;
|
|---|