As much as I hate to say it, selecting multiple items from a List is generally NOT a good use of a Combo Box type widget -- especially since most trigger a selection instantly after the first item is selected. Is there a reason that this has to be a Combo Box (or Tk::JBrowseEntry to be precise)? I believe that none of the current Tk Combo Box type widgets provide the functionality that you are looking for.

One of the problems is how is the Entry supposed to display the results of a multiple selection? Comma-separated words? What happens if one of the items in the list contains a comma or whatever delimiter you plan on using?

Here are some alternatives:
  1. Just use a listbox. It already allows for multiple selection. Do you need user-defined entries? Try using using an entry and a button that adds entries to the Listbox. Too many widgets on Screen? Create a button underneath or above the Listbox that triggers a popup Entry to add a new item to the Listbox (pretty much the reverse of what is typically done with a combo box).

  2. Try using a Menu with CheckButtons if the list is fairly small and static.

In reply to Re: TK: Multiple selection needed. by Anonymous Monk
in thread TK: Multiple selection needed. by jdtoronto

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.