foxcorner has asked for the wisdom of the Perl Monks concerning the following question:

Hello venerable monks,

I am going crazy trying to find a directory selection dialog for Perl on Windows (using Tk or Win32) which has the following characteristics:

* Must allow users to select directories (this rules out getOpenFile)

* Must allow users to create a new directory (this rules out most of the other Tk widgets, and also Win32::FileOp::BrowseForFolder)

* Must actually work with recent Tk (this rules out Tk::FileDialog. Sadly, the "replacement" Tk::JFileDialog loses the ability to create a new directory...)

* Should look reasonably nice on Windows XP (this rules out the *horrible* DirSelect widget, which my users will have no idea how to use)

I have failed to find *anything* that fits the bill!

The ideal solution would be an implementation of getOpenFile which allows the selection of directories.

Is there such a thing? Or anything that would work?


Replies are listed 'Best First'.
Re: Directory selection dialog
by erroneousBollock (Curate) on Aug 28, 2007 at 03:12 UTC
    Um, you have PerlTK ;)

    Perhaps you could write a few widgets to suit your needs.

    I understand that is not a small undertaking (writing a nice once will take time), but if nothing out there meets your needs then it's an option you can't really ignore.


      Yes, I know, but not being an expert, it would be quite a burden. I'm hoping someone will come out of the woodwork with something already baked. :-)

      Thanks, Dan