I wonder if this is possible. Imagine I have a listbox L1
with three items. If I select item one with single click, I want to get L1.curselection()
to be ('0',)
, then if I select item three (without holding control or shift) I want to get L1.curselection()
now updated so I get the output of ('2',)
.
Is this possible with listbox widget in Tkinter. Is my understanding of curselection()
correct?
I am trying to build something like a file viewer.