A
A Epstein
I have created a tree object in PerlTk. It seems to work fine. When
the tree is initially displayed, I want all the children (for each
path) to be hidden. Basically that the parents will have the '+' sign
next to them and when i click it, it will show the sub branches. I
have written something like this:
foreach (@paths) {
$tree -> setmode ( $_, 'open' );
}
According to documentation, this is the way to do it. 'open' means
that the branches will be "ready for opening," i.e closed. However
this seems to have no effect at all. The branches are all open ('-'
sign) and the children are not hidden.
Btw: I did not forget to put
$tree -> autosetmode();
at the end, if that is what anyone was thinking.
What am I doing wrong?!!! Help!!!
the tree is initially displayed, I want all the children (for each
path) to be hidden. Basically that the parents will have the '+' sign
next to them and when i click it, it will show the sub branches. I
have written something like this:
foreach (@paths) {
$tree -> setmode ( $_, 'open' );
}
According to documentation, this is the way to do it. 'open' means
that the branches will be "ready for opening," i.e closed. However
this seems to have no effect at all. The branches are all open ('-'
sign) and the children are not hidden.
Btw: I did not forget to put
$tree -> autosetmode();
at the end, if that is what anyone was thinking.
What am I doing wrong?!!! Help!!!