Jan-03-2023, 03:17 PM
Please show what you have tried. The code in your post makes no attempt at hiding a label.
Normally you would use pack/pack_forget to have a widget appear/disappear. If you need to place() the widget (which I think is a terrible idea), pack the widget in a frame, and place the frame.
A few comments about your example:
Why do you do this
Normally you would use pack/pack_forget to have a widget appear/disappear. If you need to place() the widget (which I think is a terrible idea), pack the widget in a frame, and place the frame.
A few comments about your example:
Why do you do this
bg=('green')
instead of this bg('green'
? The parenthesis are not needed..place(x=50,y=400)
returns None, which means labe2 is None.