from tkinter import * window = Tk() #instantiate an instance of a window window.geometry("420x420") window.title("Bro Code first GUI program") icon = PhotoImage(file='logo.png') window.iconphoto(True,icon) window.config(background="#5cfcff") window.mainloop() #place window on computer screen, listen for events
You have a great, simple way of teaching. What a relief! To have this ability in this heavily tech loaded and confusing industry is priceless! Thank you!
Bro code you are one of the best teacher which teaches programming in the best way you can , Thanks for this playlist this will gonna help us most of the way.
@@Tim1Awesome so do I have to save and outside of a python file because I'm having the same problem I try to JPG in a PNG file I tried a couple ways of manipulating it but there hasn't been anything that has worked sorry
Hello bro code and everyone I need help with customize dark mode title bar in Tkinter. The only thing I know is that disable windows bar and create new but is there a way to change background color of window bar using just a simple code I mean a short one ?😟
I keep getting _tkinter.TclError: couldn't recognize data in image file "GUI/a.png" error. furthermore it says the version of tkinter is deprecated. I am using mac catalina btw. do you know what's the problem?
My code isn't working. Here's my code: from tkinter import * window = Tk() window.geometry("420x420") window.mainloop() My error says that "Tcl" probably wasn't installed properly. Does anyone know what I did wrong?
when i puth in the line icon = PhotoImage(file = "C:\\Users\\Taghareed\\Desktop\\light bulb.gif") I get The error "couldn't recognize data in image file" I tried changing the file format, and it's location but it still gives me the error
Why can't i display the image? It keeps saying file not found even tho I tried to put path and file name and neither of them worked Do i need to install PIL?
from tkinter import *
window = Tk() #instantiate an instance of a window
window.geometry("420x420")
window.title("Bro Code first GUI program")
icon = PhotoImage(file='logo.png')
window.iconphoto(True,icon)
window.config(background="#5cfcff")
window.mainloop() #place window on computer screen, listen for events
couldn't recognize data in image file "h.jpg"
please share nuclear launching codes for better World😊🤣
What tool you are using
You have a great, simple way of teaching. What a relief! To have this ability in this heavily tech loaded and confusing industry is priceless! Thank you!
You are so awesome at explaining these things
I can't believe you're a hidden gem in the programming world
Brilliant video. Who's learning in 2024? Where's my 2024 family?
Bro code you are one of the best teacher which teaches programming in the best way you can , Thanks for this playlist this will gonna help us most of the way.
This guy is top of the line. So clear and logical.
"We should give our window a unique name, such as window." 😂
Great tutorial.
I love you teachings.
I love the way you taught me Cascading Style Sheet.
God bless you.
Great series, so far the best for me🔥
I agree
thats sick this is one of the easiest tutorials of making a gui i've seen in my life
if anyone having problem with the icon, tkinter doesn't accept .jpg photos, try converting the photo to .png
i did but still, same issue
@@ov3rd0se did you save the image from Google as "all files" then put .png in the title? or what did you do?
Thank you
@@ov3rd0seAnd do you have any thoughts of how it can be used to use the image because I'm having the same problem with a .PNG file
@@Tim1Awesome so do I have to save and outside of a python file because I'm having the same problem I try to JPG in a PNG file I tried a couple ways of manipulating it but there hasn't been anything that has worked sorry
Btw to anyone wondering why the window.iconphoto() doesn't works, try resizing the icon smaller. I resized mine to near at 800x800 pm (wasnt accurate)
Underrated channel. Nice explanation, and free code.
So much learned from this Channel! Thank you Bro from the bottom of my heart 😊
Excellent content, but most importantly, I'm loving the funky music at the end.
Very good video. I learn more from you than from college. Btw for this tutorial I work in Linux Mint.
The explanation is very clear, thanks
Wow! Lucid explanation!! Thank you!!!
thank you so much! this tutorial was really straightforward, and really helped me!
nice
Clear explanation 👌
Great video Bro. I wish you well in your future endeavours.
Great style, also great explanation.Thx.
good
Your the best @Bro Code 💪💪
best video...i feel like im started doing something with code!
bro took the master degree of explaining
Muito obrigado por essa incrível explicação, de como colocar ícone ao lado do título.
best tutorial ever i love it😃😃😃😃😃😃
Nice & easy explanation!
Really good video
"gooey"
this is just amazing thank you so much
GUI are really exciting (❁´◡`❁)
superrrr coolll
Wow!
i almost had a stroke because of how you pronounced GUI
😊
Thanks for amazing content!
Thanks
😇
Kindly face revealed , and also add Q/A ABOUT UR LIFE AND PROGRAMMING
that was my favorite colour )
I enjoyed it🎉
good vid
❤
You made it so easy bro.
nice work!!
شكرا
Wow!
Brooo that is some Giga Chad content! Thanks.
what dose he use to write this
Very Helpful!
"Ery Noice" -Jeremy Clarkson
thanks
Hello Bro!!!. Thanks for the tutorial!
thank you as always Lucy
Thank u
Hello bro code and everyone
I need help with customize dark mode title bar in
Tkinter.
The only thing I know is that disable windows bar and create new but is there a way to change background color of window bar using just a simple code I mean a short one ?😟
Did you solve it?
Could you solve it?
I keep getting _tkinter.TclError: couldn't recognize data in image file "GUI/a.png" error. furthermore it says the version of tkinter is deprecated. I am using mac catalina btw. do you know what's the problem?
Try updating python since tkinter is built-in and comes with python.
Bro type smaller case "file=" not "File="
Resize it to a smaller size
what worked for me is to download an older version of python
3:59 Nuclear launch codes😅
Thanks 🙏
love u
My code isn't working. Here's my code:
from tkinter import *
window = Tk()
window.geometry("420x420")
window.mainloop()
My error says that "Tcl" probably wasn't installed properly. Does anyone know what I did wrong?
Hey Bro, how can we add .jpg images in the GUI window, can u please help me
got the same problem JPG is no go for now. error _tkinter.TclError: couldn't recognize data in image
@@michael3k80 I got the solution bro, i will share it with you
@@dcsharma0107 would be thankful for it. Its kinda strange that such a popular type is not supported
from PIL import Image, ImageTk ------> (pip install pillow)
image = Image.open("F:\\Python Files\\My Pic.jpg")
photo = ImageTk.PhotoImage(image)
Nuclear codes^^ great just greate!
Thank you sir, it's cool to do😂
How open python program only into window tkinter and no to the console cmd or VSC ?
Thank you Bro Code.
Bro, this bro is the bro
BRO why am i getting this error??
ModuleNotFoundError: No module named 'tkinter'
im getting the same thing.
ty
Hey Bro, on Windows the icon changes inside the window object but not in the taskbar. Is there a way to change the taskbar image as well?
This is amazing!
Thanks bro 😁
Thanks bro 😅
Bro love you ❤️
sus
I need help whenever i try to run it the console says (That probably means that Tcl wasnt installed properly)
Bros a Genius
bros actually helpful
Meow~! :3
420x420 is good 😁
Hmmm why the intro was soo fast? You spoke like you were in a hurry xD
Nice video! :D
I noticed that 420x420 bro
Algorithm
when i puth in the line icon = PhotoImage(file = "C:\\Users\\Taghareed\\Desktop\\light bulb.gif")
I get The error
"couldn't recognize data in image file"
I tried changing the file format, and it's location but it still gives me the error
That's because You are not having the file named so in ur main project file
U also have to make the image smaller
i juste started to learn python but the window is somehow not showing up
nvm
Thank you!
You're welcome!
You did it east
Why can't i display the image? It keeps saying file not found even tho I tried to put path and file name and neither of them worked
Do i need to install PIL?
Nvm it worked
@@daniaomari7238 how?
I used the relative path and it works
Hello bro
what do u use to write this
this comment is nothing just to support the channel
Comment!
_tkinter. TclError: couldn't recognize data in image file "qwerty.jpg". Help me please with this error 🙏
U have to resize it to a smaller size,I had the same prblem
did you solve it? can you help me with it?
@@gamemonster9179 how do I do that?
@@Hg31415 go to the file,and crop it to a smaller size,or find another one which is smaller than that pic
anyone know what program hes using?
Python?
Pycharm
what is your IDE?
bro code uses visual studio code
@@oximas-oe9vf No he actually uses PyCharm
ok Bro so if your listening, I'm willing to pay you to make me dangerous with this
Can i use Visual Studio Code for this python code?
late reply but yes
bruh
window.geometry("420×420") in not working its says this _tkinter.TclError: bad geometry specifier "420×420" , anyone can help me plz