How to hide a widget (frame) after it's been shown with .place()
?
For example:
lbl = tkinter.Label(root, text="A label")
lbl.place(relx=0.5, rely=0.5)
lbl.?() # Hide the label
The answer is .place_forget()
:
lbl = tkinter.Label(root, text="A label")
lbl.place(relx=0.5, rely=0.5)
lbl.place_forget() # Hide the label
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With