# This demonstration script prompts the user to select a directory.
use vars qw/$TOP/;
sub choosedir {
my $demo = shift;
$TOP = $MW->WidgetDemo
(
-name => $demo,
-text => "Enter a directory name in the entry box or click on the \"Browse\" buttons to select a directory name using the directory selection dialog.",
-title => 'Choose Directory Demonstration',
-iconname => 'choosedir',
);
{
my $f = $TOP->Frame;
my $lab = $f->Label(-text => "Select a directory to open: ",