simonz has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I am working with a TK tree with some 500 nodes and some 2-3 children hanging from each node. The problem is if I use 'open' function to bring all the collapsed nodes to expand mode by the following code, the it takes lot of time to expand
for 500 nodes.
Is there any other mechanism to expand them all in one go without having to iterate on each of them.
map { $tree()->open($_) } @EntryPaths;
Where the @EntryPaths is contaning 0.0.1, 0.0.2, 0.0.3 so on upto 500.0.1, 500.0.2 like this .
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Tk tree open problem
by kcott (Archbishop) on Mar 12, 2014 at 22:15 UTC | |
by simonz (Sexton) on Mar 13, 2014 at 05:13 UTC | |
by kcott (Archbishop) on Mar 13, 2014 at 06:11 UTC | |
|
Re: Tk tree open problem
by zentara (Cardinal) on Mar 13, 2014 at 09:45 UTC |