I want to remove a frame from my interface when I click on a specific button.
This is a callback function called
def removeMyself(self):
del self
However, he does not remove himself. Perhaps I will just delete the object in python without updating the interface?
thank
Update
self.itemFrame = tk.Frame(parent)
self.itemFrame.pack(expand=False, side=tk.TOP)
removeB = tk.Button(self.itemFrame, text="Remove", width=10, command=self.removeIsosurface)
def removeIsosurface(self):
self.itemFrame.Destroy()
Error message:
AttributeError: Frame instance has no attribute 'Destroy'
source
share