merrymonk has asked for the wisdom of the Perl Monks concerning the following question:
However, I got the following error message:use Tk; use strict "vars"; use Tk::DirSelect; my $initial_dir = "C:\\Temp"; my $mw; $mw = MainWindow->new; my $ds = $mw->DirSelect( -directory => $initial_dir, -width => 100, -height => 25, -background => red ); my $dir = $ds->Show(); print "dir <$dir>\n"; MainLoop;
Should I be able to use the –directory option? If so, does this mean I have something basically wrong with my Perl Tk set up?sub configure { my $alias = shift; shift if (@_); my ($set,$get,$widget,@args) = @$alias; if (wantarray) { my @results; eval { @results = $widget->$set(@args,@_) }; croak($@) if $@; return @results; } else { my $results; [line 45]eval { $results = $widget->$set(@args,@_) }; croak($@) if $@; return $results; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Tk dirSelect -options problem
by choroba (Cardinal) on Apr 20, 2018 at 09:04 UTC | |
by merrymonk (Hermit) on Apr 20, 2018 at 13:30 UTC | |
by Anonymous Monk on Apr 20, 2018 at 19:51 UTC | |
|
Re: Tk dirSelect -options problem
by Anonymous Monk on Apr 20, 2018 at 19:43 UTC | |
by merrymonk (Hermit) on Apr 21, 2018 at 07:42 UTC | |
by Anonymous Monk on Apr 23, 2018 at 06:41 UTC |