|There's more than one way to do things|
Re: How to get foreground color from a TK::Listboxby Discipulus (Abbot)
|on Apr 14, 2018 at 12:49 UTC||Need Help??|
Hello jsteng and welcome to the monastery and to the wonderful world of perl!
I tried a bit and it seems i get trouble first time I query one property: $lb->itemcget($sel, '-background') so I provide the initial value manually: my $current_color_bg = $lb->itemcget($sel, '-background') || 'yellow';
Here a working example flipping the colors:
Double clicking the first entry 3 time and one time the second:
There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.