I am looking for a simple means to overcome two (possibly with same root cause) issues relating to Tk::Listbox entry selections being reset unexpectedly (my expectations).

1. Scenario Tk::Entry (or Tk::ROText both tested) widget with text showing, Tk::Listbox with one or more entries selected (-selectmode 'single' and 'extended' tested) and select (Left Mouse press and drag) some text in Tk::Entry and you'll see the Listbox selection is reset.

2. Have multiple Tk::Listboxs open, even if in separate toplevel windows, and you cannot (as far as I can see) have selections in more than one Listbox at a time - even if you use selectionSet() method to try and achieve that (selection in more than one Listbox at a time that is).


Doctor it hurts when I do this! Reply: Then don't do that! So yes, not without a measure of frustration, I can achieve what I want via using <<ListboxSelect>> event and depicting selected entries in a different font color and/or background plus code to do equivalent of curselection() method by fnding such configuration item differences or I could look to Tk::TableMatrix and have multiple columns(lists) etc



Education greatly appreciated!
To add to the frustration, it appears my lap counter is in need of replacement due to RSI - I've been around the bend too often! However, I can't afford a replacement due to the therapy costs between counter update events!


In reply to Tk::Listbox and Selection unexpected changes by WayneRas

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.