Keep It Simple, Stupid | |
PerlMonks |
Tk dirSelect -options problemby merrymonk (Hermit) |
on Apr 20, 2018 at 07:44 UTC ( [id://1213225]=perlquestion: print w/replies, xml ) | Need Help?? |
merrymonk has asked for the wisdom of the Perl Monks concerning the following question:
Earlier this week I asked questions about a resizable directory selection option for Tk. Given the answers my plan was to use dirSelect initially and then work on the more flexible dirTree example to get exactly what I wanted. I do want to be able to give an initial directory as a starting point for the directory selection. The CPAN description says “Any other options provided will be passed through to the DirTree widget that displays directories, so be sure they're appropriate (e.g. -width)”. Therefore I thought that I can specify the directory using the –directory option as in the Perl below. However, I got the following error message: “Can't set -directory to `C:\Temp' for Tk::DirSelect=HASH(0x45a18a8): unknown option "-directory" at … a reference to the Configure.pm line 45” The Perl code at this point is, I have marked the line 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?
Back to
Seekers of Perl Wisdom
|
|