May-16-2022, 09:30 AM
Hi,
I have a listbox for MULTIPLE selection.
Like so:
The information of which line was selected first is lost. (Especially the first selection)
Yes, I can create a new variable to save this info, it would be nicer if I can prevent it from sorting.
thx,
Paul
I have a listbox for MULTIPLE selection.
def getElement(event): selection = event.widget.curselection()the variable "selection" becomes a vector as you select more lines. OK.
Like so:
Output:(10, 11, 12, 15)
My question: "selection" gets sorted automatically, for every line you click.The information of which line was selected first is lost. (Especially the first selection)
Yes, I can create a new variable to save this info, it would be nicer if I can prevent it from sorting.
thx,
Paul
It is more important to do the right thing, than to do the thing right.(P.Drucker)
Better is the enemy of good. (Montesquieu) = French version for 'kiss'.
Better is the enemy of good. (Montesquieu) = French version for 'kiss'.