in reply to itemconfigure in listbox (Tk)
#!/usr/bin/perl use warnings; use strict; use Tk; my $top = MainWindow->new; my @color = qw/red yellow pink green purple orange blue/; my $listbox = $top->Scrolled('Listbox')->pack; for (0..99){ $listbox->insert('end',$_); $listbox->itemconfigure($_, -background => $color[rand(@color)]); } MainLoop;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: itemconfigure in listbox (Tk)
by ch4inm4n (Novice) on Mar 12, 2013 at 12:50 UTC | |
Re^2: itemconfigure in listbox (Tk)
by liverpole (Monsignor) on Mar 12, 2013 at 14:08 UTC | |
by Anonymous Monk on Mar 12, 2013 at 23:02 UTC | |
by liverpole (Monsignor) on Mar 13, 2013 at 00:02 UTC | |
by Anonymous Monk on Mar 13, 2013 at 00:12 UTC | |
by liverpole (Monsignor) on Mar 13, 2013 at 02:29 UTC | |
| |
by zentara (Cardinal) on Mar 13, 2013 at 12:00 UTC |