Good friends, I have the following problem:
AttributeError: 'NoneType' object has no attribute 'destroy'
To avoid placing all the code, I will recreate the error in a shorter way:
import tkinter as tk
ventana = tk.Frame().pack()
str_var = tk.StringVar()
entrada = tk.Entry(ventana, textvariable= str_var).pack()
boton_destruir = tk.Button(ventana,
text="Destruir",
command=lambda:entrada.destroy()).pack(side="bottom")
This happens when I want to destroy a