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
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... ^-^
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?
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?
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
hi, what it you put three labels on the screen and you wanted to delete the last two, how would you do that. right now I am only able to remove the last label added.
I am using this method to forget every widget in tkinter but I am not able to restore it: def settings(): list = root.place_slaves() for l in list: l.forget()
Hi, how we can use Bash(Shell) in tkinter? Entry-> label-> take label to subproces -> example 'grep label_text filepathfromsecondentry -> save output in file from entrynumber3
Is there any way to delete the label automatically? Like You click the button to submit your name, then the label shows for 5 seconds or so then gets deleted?
Ok so i am using the .destroy() function but.. it doesnt work and it doesnt print an error so please help because i dont know whether this is a version problem or just if i am doing it wrong
Exception in Tkinter callback Traceback (most recent call last): File "C:\Users\shaan\anaconda3\lib\tkinter\__init__.py", line 1883, in __call__ return self.func(*args) File "C:\Users\shaan\Downloads\ADV-C145-student-20201209T202452Z-001\ADV-C145-student\SuveyAPP.py", line 19, in remove label_title.destroy() AttributeError: 'NoneType' object has no attribute 'destroy' This error has no clue to solve it. I Tried it a thousand times but it didn't work
Can you help me, when I disable the button it says the following error: btcalcular['state'] = DISABLED #btcalcucar is name button NameError: name 'DISABLED' is not defined
Hello sir how would i delete the label without the delete button inside the myclick function itself so that after printing the name for first time and then when i type other name and click the enter my name button the previous name is deleted and the new name is printed in the window please help me with this
how can i replace a specific word in text widget ? ... for example i typed words then i selected one of them and used text.selection_get() method, i want to replace the word i select with another word.
@@Se_1364 yeah, string replace works there. variable.replace("red", "blue") replaces the word red with the word blue. Obviously you'll have to tweak it for tkinter.
Really love you videos. But i have one problem, when i create more than one label and then try to delete more than one i can only delte one label and not the other ones. can anybody tell me why that is?
@@Codemycom yeah I create them with a function and then put all of them in a list and then i tried to to destroy them in from the list but it doesn't work. But I also found your video about the todo list and that's what I'm looking for.
@@Codemycom No i mean remove it with the same buttom that enter it like a sign up thing if the password has less than 8 characters the label shows up and if he edit it and make it more than 8 char the label goes
i am learning python, as it is my hobby learning codding,i wish to be professional in python, how can you help me,, i like the way you explain though you are little fast.
@@garikinarajesh1999 Yeah, what other way do you think you could do it short of telepathy. It's a computer program, you have to click something to interact with it.
please, how can we save, in a text file, all the values of variables coming from the Print command, displayed in the "RUN" window of PyCharm. I'm a beginner. Mecri of your time
▶️ Watch Entire Tkinter Playlist ✅ Subscribe To My TH-cam Channel: bit.ly/2UFLKgj bit.ly/2IGzvOR ▶️ See More At: ✅ Join My Facebook Group: Codemy.com bit.ly/2GFmOBz ▶️ Learn to Code at Codemy.com Take $30 off with coupon code: youtube1
Big fan of your tutorials! Super helpful for someone starting out with tkinter. Keep at it!
Thanks, will do!
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
agreed!
You are the man. GOD bless you and your family
Thanks, you too!
Im learning a lot quicker then I thought I would thanks to your videos
Glad to hear it!
Thanks from my heart
I learn a lot from your videos
Glad to hear that
thx so much John for charing these awesome videos! The videos are very helpful and u r just a great teacher. Greetz from Germany 👍
Thanks so much! I appreciate it!
to make your text changes dynamically use textvariable
thank you a lot mr john for this awesome course
Thank you! Your tutorials are super helpful 😊
Glad you like them!
I'm very glad I found this video!!!
Thank you so much, very helpful🙂👍
Glad you liked it!
I was looking for this for a long time thank you
Glad you found it!
why wouldn't the best option be just to reconfigure the label with the new user input each time? (label.config)
this seems to work just fine, or even better. Instead of having a separate delete method I just used label.configure() on the myClick method.
@@deshanfernando7982 How bro ?
Thank you
بارك الله فيك
You're welcome!
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... ^-^
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?
I'm sure I have, but I don't recall where
how to do that without button
Do you mean with telepathy?
sir cant we use pixel without grid or pack
Thx John, 감사합니다!
Sure thing!
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?
In the normal way you always call a widget
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 ?
Define it, make it global
I always get AttributeError: “NoneType” object has no attribute “pack_forget”. Pls help :(
Did you define the thing, and pack the thing on the same line? You can't do that.
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?
Use .config()
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
Thank you very much
Welcome!
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
@2:29/9:57 Instead of writing "end" it should be "END" in uppercase
sir i m using the .grid() instead of .pack() and when i want to delete the label with .destroy() method i doesn t work
Has nothing to do with grid or pack, you likely have a typo somewhere
@@Codemycom Thanks sir i fixed it , Your vids are awesome !
bad window path name error
What did you do differently from the video?
Is this method aplicable for images that after opening second image forgot first image as well as label ?
yes
hi, what it you put three labels on the screen and you wanted to delete the last two, how would you do that. right now I am only able to remove the last label added.
in the same way you would remove any label.
When I try this in my code I get TypeError: pack_forget() missing 1 required positional argument: 'self' Any ideas?
I am using this method to forget every widget in tkinter but I am not able to restore it:
def settings():
list = root.place_slaves()
for l in list:
l.forget()
does it work for button also??
yes
Hi, how we can use Bash(Shell) in tkinter?
Entry-> label-> take label to subproces -> example 'grep label_text filepathfromsecondentry -> save output in file from entrynumber3
The same way you would ever use Bash(shell) in any python program...
sir, destroy() function does not work tell me why!!!!
Because you're using it wrong or there's an error in your code
Is there any way to delete the label automatically? Like You click the button to submit your name, then the label shows for 5 seconds or so then gets deleted?
yep...I have videos on timers on the playlist
Ok so i am using the .destroy() function but.. it doesnt work and it doesnt print an error so please help because i dont know whether this is a version problem or just if i am doing it wrong
It's not a version problem, you're likely just doing it wrong...
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Users\shaan\anaconda3\lib\tkinter\__init__.py", line 1883, in __call__
return self.func(*args)
File "C:\Users\shaan\Downloads\ADV-C145-student-20201209T202452Z-001\ADV-C145-student\SuveyAPP.py", line 19, in remove
label_title.destroy()
AttributeError: 'NoneType' object has no attribute 'destroy'
This error has no clue to solve it. I Tried it a thousand times but it didn't work
You packed and defined your label on the same line didn't you? Don't do that.
Can you help me, when I disable the button it says the following error:
btcalcular['state'] = DISABLED #btcalcucar is name button
NameError: name 'DISABLED' is not defined
I solve it :
btcalcular.configure(state='disabled')
in phyton 3.10.8
Could we do this with images?I am trying to display 700 images from a file onto a gui,I display one and then overwrite it after 0.5 s
Not sure what you mean
Hello sir how would i delete the label without the delete button inside the myclick function itself so that after printing the name for first time and then when i type other name and click the enter my name button the previous name is deleted and the new name is printed in the window
please help me with this
use .config()...I have videos on this in the playlist
@@Codemycom sir I have used it works for smaller programs but in larger programs like hangman game it doesn't work
It gets overridden
How can we delete each single entry every time by clicking button ?
give the button a command that points to a function that does exactly that
how can i replace a specific word in text widget ? ... for example i typed words then i selected one of them and used text.selection_get() method, i want to replace the word i select with another word.
Try string replace variable.replace(old, new)
actually the word will replaced after right-clicking, but I just don't know how to replace only the word I selected not the whole text.
@@Se_1364 yeah, string replace works there. variable.replace("red", "blue") replaces the word red with the word blue. Obviously you'll have to tweak it for tkinter.
Codemy.com thank you I will try it
showLFSlabel.pack_forget()
AttributeError: 'NoneType' object has no attribute 'pack_forget', i dunno why that error
You probably defined and packed the label all on the same line. You can't do that.
Really love you videos.
But i have one problem, when i create more than one label and then try to delete more than one i can only delte one label and not the other ones. can anybody tell me why that is?
It's because you're doing something wrong. Are you naming the labels all the same thing or something?
@@Codemycom yeah I create them with a function and then put all of them in a list and then i tried to to destroy them in from the list but it doesn't work. But I also found your video about the todo list and that's what I'm looking for.
How to delete a label on a grid though? Need help :(
In the same way... it being on a grid is irrelevant
hi ! how can i remove a label with the same button
doesn't this video show you that?
@@Codemycom No i mean remove it with the same buttom that enter it
like a sign up thing
if the password has less than 8 characters the label shows up and if he edit it and make it more than 8 char the label goes
@@abnalgeria4598 sure, use basic python for that. I don't have videos on it but it would be trivial with a little if/else logic.
@@Codemycom it showed an eror but im gonna try again anyway thnx btw love ur videos
i am learning python, as it is my hobby learning codding,i wish to be professional in python, how can you help me,, i like the way you explain though you are little fast.
Just watch all the videos on my channel
this today is not working anymore, python 3.10 know why?
You're wrong, it works fine today. You just did it wrong.
why heisenberg is teachin python?
Why not?! lol
Can we maybe get a "Boom! Nothing happens" tshirt
Ha!
nice
Thanks
forget is not defined
How to fix it?
define it
its easy to do it just use destroy cmd or wnt to change text on label just type label.config(text="codemy.com")
yeah, we do that several thousand times throughout this playlist :-p
@@Codemycom :-D
@@Codemycomi learn python gui from you john your a great teacher thanks from sri lanka
@@netharuM Glad you're enjoying the videos!
HOW to change a label in tkinter and not change the new label when you restart the program
Everything always reverts when you restart it, unless you use a database to record the changes. Or some other save method.
how to destroy a placed label insted of pack
.destroy() usually does the trick
Now, how to erase Entry boxes? I do that?????
I have videos on that.
how to delete label without using button
Do you mean telepathically?
@@Codemycom I developed love calculator application using tkinter in python I am unable to delete label without clicking on a button
@@garikinarajesh1999 Yeah, what other way do you think you could do it short of telepathy. It's a computer program, you have to click something to interact with it.
How to delete all LABEL WIDGETS in tkinter
loop thru and destroy all children..I have videos on it in the playlist
@3:49 this thing also happened with me
please, how can we save, in a text file, all the values of variables coming from the Print command, displayed in the "RUN" window of PyCharm. I'm a beginner. Mecri of your time
Sorry, I don't use pycharm, so I have no idea. But you can google "Python save to text file" to learn how to read and write to a text file.
▶️ Watch Entire Tkinter Playlist ✅ Subscribe To My TH-cam Channel:
bit.ly/2UFLKgj bit.ly/2IGzvOR
▶️ See More At: ✅ Join My Facebook Group:
Codemy.com bit.ly/2GFmOBz
▶️ Learn to Code at Codemy.com
Take $30 off with coupon code: youtube1