I want to overwrite/replace the text Label with a button. If I try to make a new label and place it at the same location, the previous text is still visable since it is longer than the new text. Is it possible to delete the previous text first? any hints
root = tk.Tk()
tabControl = ttk.Notebook(root)
tab1 = ttk.Frame(tabControl)
def changetext():
labeltest = Label(tab1, text="short text").place(x=20, y=20)
labeltest = Label(tab1, text="long long long text").place(x=20, y=20)
button1 = Button(tab1, text="Change text pls", command=changetext)
button1.place(x=20, y=50)
root.mainloop()