Tkinter Listbox Basic Operation
This section will introduce the following commonly used methods for Listbox control operations.
(1) size()
: pass back the number of list items.
(2) selection_set()
: selects a specific index item.
(3) delete()
: Delete a specific index item.
(4) get()
: Passes back the specified index item.
(5) curselection()
: Passes back the index of the selected item.
(6) selection_include()
: check if the specified index is selected.