in reply to ability to create a directory in perl TK

I tested your code and I see the problem. I can use the GUI to get to some directory, but in order to make a new directory, I have to append the name in your "Directory Name box" with "\newdirname", then yes that directory gets made after "Go". Of course the problem is that the GUI user doesn't see that as an obvious possibility. I just instinctively tried it, but I'm not your average GUI user.

Really what is needed is something like the getOpenFile() dialog, which I demo'd at Re: select input file from windows explorer. Amazing enough that open file dialog will allow a new directory to be created in the "windows way"! Unfortunately this thing wants a file name and won't settle for just creating the directory.

I think you are going to be stuck with having to create some more buttons and dialog about making a new directory in your Tk code. I see what you want, but I don't see any easy way to get there.

Update:
The problem is that you are asking about a directory instead of a path to a file.

Windows app programs don't ask, "give me a directory", they want a path to a specific file.

A Windows app asks where to to save/get a file. Creating a dir, with no target file is rather strange.

  • Comment on Re: ability to create a directory in perl TK