Remove Labels - Python Tkinter GUI Tutorial #41

preview_player
Показать описание
In this video I'll show you how to remove labels from your tKinter app with pack_forget() and destroy().

Once you put a label on the screen of your tKinter app, it can be a hassle to change it or remove it later. In this video I'll show you two methods to do it. I'll also show you a method to discover whether or not a widget exists at all.
Рекомендации по теме
Комментарии
Автор

Big fan of your tutorials! Super helpful for someone starting out with tkinter. Keep at it!

ethanchilton
Автор

i will never understand how people can dislike this, he is literally giving us all this knowledge so EASY and for FREE and some people dare to give a thumbs down, thats INSANELY STUPID

jaylooppworld
Автор

You are the man. GOD bless you and your family

Kennerdoll
Автор

Im learning a lot quicker then I thought I would thanks to your videos

jesterlw
Автор

Thanks from my heart
I learn a lot from your videos

duhmi
Автор

thx so much John for charing these awesome videos! The videos are very helpful and u r just a great teacher. Greetz from Germany 👍

sweeneytodd
Автор

to make your text changes dynamically use textvariable
thank you a lot mr john for this awesome course

aljoker
Автор

Thank you! Your tutorials are super helpful 😊

Vivian-yfqw
Автор

I'm very glad I found this video!!!
Thank you so much, very helpful🙂👍

kganeshvaidyanathan
Автор

I was looking for this for a long time thank you

sks
Автор

why wouldn't the best option be just to reconfigure the label with the new user input each time? (label.config)

elliot
Автор

Hello, when i run the program appears"AttributeError: 'NoneType' object has no attribute 'pack_forget'".Why is this happening?. Its only when i click on "Delete Button". Sorry bad my english for... ^-^

francodiaz
Автор

John, suppose you click on 'Enter your name' multiple times, the name will be printed multiple times one below the other. How can we delete all instances of the labels at once? If you have already discussed this can you please tell me which videos to look at?

gorillacapers
Автор

sir cant we use pixel without grid or pack

netharuM
Автор

I don't know if I have overlooked it or not, but how do you recall a widget after using either grid or pack_forget?

davza
Автор

Hello, if we put an If in function myClick and we put a label in this If, remove will not work because the label is not defined. Solution ?

puxjbvu
Автор

I always get AttributeError: “NoneType” object has no attribute “pack_forget”. Pls help :(

kleinerdiamant-bs
Автор

John, what if you only have one button (Enter your name), then you want to clear the previous label before the next one appears on the same line or for shot can the same task you are doing there be archived with only one button?

Kennerdoll
Автор

I do want to make a intro but when I say 'time.sleep(5)' and remove the label the program waits for 5 seconds and then my root is visible please help

zgreatest
Автор

How do I delete multiple labels under the same variable name, which r being displayed using a loop, like if I use destroy or forgot method it only deletes the last label displayed but the rest of the label's still remain, can u help me out sir, please

mohammedkamran