Hello, i am trying to use the FBox widget in perl's Tk module. the platform is cygwin running on window's XP. i'm new to Tk, but not to perl. i'm trying the get the -multiple option to work. 'multiple' is supposed to allow multiple files to be selected by FBox. i doesn't work for me. i also tried calling getOpenFile() directly with -multiple and that didn't work either (i believe FBox is a front end to getOpenFile()).

FBox wants option=>value pairs, and the docs i saw specify that -multiple doesn't need a value, so that's confusing, but i tried specifing -multiple a few different ways and none worked. the program executed, but i was not allowed to select multiple files.

i can provide more details if anyone is interested, but for now the basic question is: does this feature actually work? has anyone ever succussfully used it on any platform? ever successfully used it under cygwin on XP. i've scoured the net and couldn't find anything saying it shouldn't work.

thanks in advance. i'm really hoping it's pilot error.


In reply to FBox, getOpenFile, -multiple by mikep

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.