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

Hi all, Does anyone that allows a user to select a folder, not a file, in perl/Tk? I'm stuck what this part of the app.

Thanks,
Mark

Replies are listed 'Best First'.
Re: Code for selecting a folder in perl/Tk
by jdtoronto (Prior) on Sep 22, 2003 at 19:37 UTC
    Try this page, it talks about Tk::DirList or Tk::DirTree. That mega-widget is based on Tk::HList and whilst it will require some extra work on your part it can be made to work.

    If you are working on Windows then you will need to look at Tk::DirSelect as the others don't seem to be in ACtiveStates ppm repository.

    http://www.perltk.org/articles/filedialogs/filedialogs.html

    jdtoronto

A reply falls below the community's threshold of quality. You may see it by logging in.