2 odpowiedzi
0
from Tkinter import *
def changebutton():
but.destroy()
secondbut=Button(root,text="changed")
secondbut.pack()
if __name__=='__main__':
root=Tk()
global but
but= Button(root,text="button",command=changebutton)
but.pack()
root.mainloop()
https://stackoverflow.com/questions/9879255/is-there-any-way-to-delete-label-or-button-from-tkinter-window-and-then-add-it-b
0
from which widget you want to erase label?