in reply to A question on using Tk::ItemStyle in Tk::Tree
Trying to configure -selectbackground without style leads to
Tk::Error: unknown option "-selectbackground" at /usr/lib/perl5/vendor +_perl/5.14/x86_64-cygwin-threads/Tk.pm line 251.
which seems to indicate you can't change the option for a single entry.
Also, remove the declaration of $tree_element and declare it inside the sub:
sub abba_browse { my $tree_element = $tree->info('selection')->[0]; # ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: A question on using Tk::ItemStyle in Tk::Tree
by Anonymous Monk on Oct 31, 2014 at 04:55 UTC |