I have a Listbox
full of items, and I need to change an item's text. Using item configure I can only find out how to change colors.
How can I change the item text on a Tkinter Listbox
?
I have a Listbox
full of items, and I need to change an item's text. Using item configure I can only find out how to change colors.
How can I change the item text on a Tkinter Listbox
?
To change the text you will have to delete and re-add an item at the proper index.
Here is a contrived example that continuously updates the second item in the listbox:
You have first to delete the old item (specifying its index), using the
delete
method of yourListbox
object:and then
insert
your updated_item at position of you old item: