http://qs321.pair.com?node_id=11138851

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hello,
short question: is there a way to programmatically select a row in a Tk Tablematrix? The following:

$Table->activate('2,2');

does not produce any selection, either cell nor row. And how how to highlight multiple rows? The documentation gives me no suggestions.

Replies are listed 'Best First'.
Re: Programmatically select row in Tk Tablematrix
by choroba (Cardinal) on Nov 15, 2021 at 21:14 UTC
    activate only activates a single cell. Try selectionSet instead:
    $Table->selectionSet('1,1', '4,5');
    map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]