This is a bummer of a problem. I don't know of any way to re-size the chooseDirectory window. The DirSelect gizmo pays attention to -width, but not -height. However, it can be resized with the mouse. The disadvantage is that DirSelect is really ugly looking on Windows.

I remember this problem from a long time ago. I needed to know the directory where hundreds of data files were located. Instead of asking about the directory directly, I asked the user to select one of the data files using the Tk::getOpenFile widget. That widget looks really nice on Windows and presented an easy to understand task to do. I threw away the file name and used the directory path. This "show me one of the data files", didn't confuse the users and worked out ok for me.

Yes, this is a super kludge with a lot of limitations - like it won't work if you are asking for a directory to put results into (no files to select). I just mention this as a "hack" possibility - asking a more detailed question than you actually need.

Sorry that I don't have an obvious, easy, "great" answer for you. I am not sure that there is one.


In reply to Re: Setting size of Tk chooseDirectory by Marshall
in thread Setting size of Tk chooseDirectory by merrymonk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.