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

Dear monks. Im writing some tk and I would need a easy way for the user to define filefolder paths. The folders will be shown i a listbox. (The progam will process the files in the folders). Do you have any suggestions how to solve this problem? I thought about a folder drag and drop mechanism but not sure if it is possible to do this in -tk. Do you have any other suggestions? Thank you for any help.

Replies are listed 'Best First'.
Re: Defining folder paths in an easy way?
by jrtayloriv (Pilgrim) on Feb 16, 2008 at 12:40 UTC
    Are you just saying you need a file dialog? Tk::FileDialog handles this sort of thing nicely.
      Filedialog maybee is the obvious and right way to do this, but do you know if it is possible to implement drag and drop of folders in tk?
        I've never used it myself, but a quick search turned up a module called TK::DragDrop, which would seem to take care of that too. Try searching google for "tk drag drop perl" and you will find many tutorials and such regarding this ...

        UPDATE: Here ya go

        UPDATE: And this node isn't exactly what you're looking for, but it is very similar -- you could easily modify it to do what you want.