I am trying to use the destroy command to eliminate a Label, but the command remove only the last character of the text. when I call the function to write data ("w") in the label, it works very good, but if I call the function to destroy it ("d"), just last character is removed. The function is below:
def escreve(texto, oper, pos_x, pos_y):
global lb
if oper == "w":
lb = Label(janela, text = texto, font = "arial 16")
lb.grid(row = pos_x, column = pos_y, padx = 2, pady = 2)
if oper == "d":
lb.destroy()