meirgold has asked for the wisdom of the Perl Monks concerning the following question:
When the window is displayed, the second option box is empty,$mw->Label(-text=>"level1 ")->grid( $mw->Optionmenu(-textvariable=>\$selectedDir, -command=> sub{ @files=`ls $path/$selectedDir`; foreach (@files) {chomp();} }, -options=>\@myArr), $mw->Label(-text=>"level2 "), $mw->Optionmenu(-textvariable=>\$myFile, -options=>\@files) );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Updating one option menu by the value of another
by converter (Priest) on Apr 29, 2003 at 11:13 UTC | |
|
Re: Updating one option menu by the value of another
by Improv (Pilgrim) on Apr 29, 2003 at 10:59 UTC | |
|
Re: Updating one option menu by the value of another
by meirgold (Acolyte) on Apr 29, 2003 at 12:44 UTC |