Just like in the
Change
to
print_me
function where you get the value corresponding to the given index, you need to do that in the function add_me
Change
def add_me(): selected_items = listbox.curselection() for item in selected_items: listbox.insert(END, item) print(item, 'is added')
to
def add_me(): selected_items = listbox.curselection() for item in selected_items: item_value = listbox.get(item) listbox.insert(END, item_value) print(item_value, 'is added')