ch4inm4n has asked for the wisdom of the Perl Monks concerning the following question:
It works fine for the directory ".." but every other directory is ignored.sub readDir{ my @all = readdir(DIR); for my $x (sort (@all)){ next if($x =~ /^\.$/); $listbox->insert('end', $x); if(-d $x){ print "$x\n"; $listbox->itemconfigure($listbox->size()-1, -foreground=>" +#F00"); } } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: itemconfigure in listbox (Tk)
by zentara (Cardinal) on Mar 12, 2013 at 12:42 UTC | |
by ch4inm4n (Novice) on Mar 12, 2013 at 12:50 UTC | |
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 zentara (Cardinal) on Mar 13, 2013 at 12:00 UTC | |
|
Re: itemconfigure in listbox (Tk)
by thundergnat (Deacon) on Mar 12, 2013 at 12:57 UTC | |
by ch4inm4n (Novice) on Mar 12, 2013 at 13:10 UTC |