Tkinter destroy button create by a loop
<p>I want to create a reminder to remind me of the time I have chosen in the combobox by pressing the confirmed button. I put the time in a label and also create a delete button that can delete the label and button itself in the same row by a loop. It works if there's only one label, but if I increased the number of it it can only destroy the last label and button.  </p>

<p>below is my code: </p>

<pre><code>class final:
    def __init__(self,app):
        self.savelist=[]

        self.time= StringVar()
        self.timecombo = ttk.Combobox(app,textvariable=self.time)
        self.timecombo.grid(row=0,column=1)
        self.timecombo.config(value =('1:00','2:00','3:00','4:00','5:00','6:00','7:00','8:00','9:00','10:00','11:00','12:00'))

        self.button1=Button(app,text='confirmed',command=self.save)
        self.button1.grid(row=3,column=2)


    ***def save(self):
        savetext = self.time.get()
        self.savelist.append(savetext)
        self.deletebutton_list = []
        self.savelabel_list = []
        for i in range(len(self.savelist)):
            savelabel = Label(app, text=self.savelist[i])
            savelabel.grid(row=4 + i, column=0)
            self.savelabel_list.append((savelabel))
            deletebutton = Button(app, text='delete' , command=functools.partial(self.deletelabel,idx=i))
            deletebutton.grid(row=4 + i, column=1)
            self.deletebutton_list.append(deletebutton)
    def deletelabel(self, idx):
        self.savelabel_list[idx].destroy()
        self.deletebutton_list[idx].destroy()
        self.savelist.remove(self.savelist[idx])
        self.savelabel_list.remove(self.savelabel_list[idx])
        self.deletebutton_list.remove(self.deletebutton_list[idx])***

app = Tk()
a = final(app)
app.title('things to do')
app.geometry("500x300+200+200")

app.mainloop()
</code></pre>

<p>I believed that there must be something wrong in the loop or the function deletelabel but I still can't fix it.</p>