Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Tk::Listbox and Selection unexpected changes

by kschwab (Vicar)
on Nov 24, 2018 at 03:58 UTC ( [id://1226250]=note: print w/replies, xml ) Need Help??


in reply to Tk::Listbox and Selection unexpected changes

Set "-exportselection" to 0 on both of the widgets.

Replies are listed 'Best First'.
Re^2: Tk::Listbox and Selection unexpected changes
by WayneRas (Acolyte) on Nov 24, 2018 at 05:10 UTC

    Thank you - indeed simple and a fast response.
    I was just about to add that I had eliminated bindings from the equation via removing all of them on the listbox (bindtags([])) and using selectionSet() to add one before changing the text in Entry with same outcome when I saw your reply. I have tested with -exportselection 0 & 1 on the Entry Widget but 0 on the Listbox and it indeed behaves as expected(by me).

    If this is behavior is documented somewhere I clearly missed it (along with -exportselection being on by default which is documented) - I assure you I did multiple searches and lots of 'what if I try' before posting.

    Again thank you for your expertise and time to share it!

      "I assure you I did multiple searches and lots of..."
      Ah, don't sweat that. There's a reason I was able to answer quickly. Stuck on that same problem in the past :)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1226250]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-03-28 23:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found