ch4inm4n has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
I've a little issue using $listbox->itemconfigure($listbox->size()-1, -foreground=>"#F00");
I want every entry which is a directory in red color.
I'm looking forward for your help.
P.S. This is my first post ;-)
EDIT: my current OS is Debian with awesome-wm
I want every entry which is a directory in red color.
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"); } } }
I'm looking forward for your help.
P.S. This is my first post ;-)
EDIT: my current OS is Debian with awesome-wm
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: itemconfigure in listbox (Tk)
by zentara (Archbishop) 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 (Archbishop) 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 |
Back to
Seekers of Perl Wisdom