I have a code that creates 10 entries using a for loop, which saves the result in a list so I can use get, but I have another button and I need to delete what is written in the 10 entries, how do I do that?
for i in range(10):
entry = Entry(self.lf_mid)
entry.place(relwidth=0.6, relheight=1/10, relx=0.35, rely=i/10)
lista_entrys.append(entry)
#this don't work
bt = Button(self.lf_bot, text='clear', command=entry.delete(0, 'end'))
bt.pack(side='left', expand=1)
I appreciate if you can help me <3