michaelg has asked for the wisdom of the Perl Monks concerning the following question:
<edit: castaway - added code tages and formatting>sub dyntree_adddir { my( $tree, $dir ) = @_; my $text = $dir; $text = (split( "/", $dir ))[-1] unless $text eq "/"; $tree->add( $dir, -text => $text, -image => $tree->Getimage("folde +r") ); $tree->setmode( $dir, -d $dir ? "open" : "none" ); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Tk::dirtree tree (path && links)
by bbfu (Curate) on Sep 02, 2003 at 22:08 UTC |