I find this feature of automatic selection to item index 0 in the Listbox a nuisance. In my script, I have 3 listboxes called lb1,lb2 and lb3. If user selects any items on lb2 or lb3, I intend to pop up a MessageBox to ask the user to only select items from lb1. However, due to the automatic selection items index 0 in lb2 and lb3, whenever I click on item in lb1, the MessageBox also appears.
Question: How can I disable the initial selection of item index 0 in ListBox?
This is part of my script to call MessageBox if user selects items from lb2 or lb3:
if lb2.get(ACTIVE) or lb3.get(ACTIVE):
tkMessageBox.showwarning("Warning","Please select from lb1 ")
Please advice! Any other ways to perform the intended action will also do. Thanks.