Python GUI windows 🖼️

  Рет қаралды 64,788

Bro Code

Bro Code

3 жыл бұрын

Python tkinter GUI tutorial for beginners
#Python #tkinter #GUI #tutorial #beginners
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

Пікірлер: 134
@BroCodez
@BroCodez 3 жыл бұрын
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
@JA-ym1tc
@JA-ym1tc Жыл бұрын
couldn't recognize data in image file "h.jpg"
@udayvadecha2973
@udayvadecha2973 7 ай бұрын
please share nuclear launching codes for better World😊🤣
@kevinrussell6530
@kevinrussell6530 11 ай бұрын
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!
@ji23delgado
@ji23delgado 3 жыл бұрын
You are so awesome at explaining these things I can't believe you're a hidden gem in the programming world
@Tim1Awesome
@Tim1Awesome 6 ай бұрын
if anyone having problem with the icon, tkinter doesn't accept .jpg photos, try converting the photo to .png
@ov3rd0se
@ov3rd0se 6 ай бұрын
i did but still, same issue
@Tim1Awesome
@Tim1Awesome 6 ай бұрын
@@ov3rd0se did you save the image from Google as "all files" then put .png in the title? or what did you do?
@user-ju8ws6xz3i
@user-ju8ws6xz3i 3 ай бұрын
Thank you
@apk_academy
@apk_academy Жыл бұрын
I love you teachings. I love the way you taught me Cascading Style Sheet. God bless you.
@gmwillis2000
@gmwillis2000 8 ай бұрын
This guy is top of the line. So clear and logical.
@yz_smg
@yz_smg 8 ай бұрын
thats sick this is one of the easiest tutorials of making a gui i've seen in my life
@madhavjoshi9040
@madhavjoshi9040 Ай бұрын
Wow! Lucid explanation!! Thank you!!!
@chrisdavies6221
@chrisdavies6221 2 жыл бұрын
Excellent content, but most importantly, I'm loving the funky music at the end.
@kapibara2440
@kapibara2440 7 ай бұрын
So much learned from this Channel! Thank you Bro from the bottom of my heart 😊
@Kragatar
@Kragatar 11 ай бұрын
"We should give our window a unique name, such as window." 😂 Great tutorial.
@richardwang7965
@richardwang7965 6 ай бұрын
The explanation is very clear, thanks
@joyomanda375
@joyomanda375 Ай бұрын
Nice & easy explanation!
@tarik8543
@tarik8543 Жыл бұрын
Great video Bro. I wish you well in your future endeavours.
@cristiucvladimir7909
@cristiucvladimir7909 2 ай бұрын
Thanks for amazing content!
@barnaatakacs1600
@barnaatakacs1600 3 жыл бұрын
Great series, so far the best for me🔥
@Pjnpm
@Pjnpm 3 жыл бұрын
I agree
@nidhidhanyadaneshdevadarsa533
@nidhidhanyadaneshdevadarsa533 2 ай бұрын
best tutorial ever i love it😃😃😃😃😃😃
@hamzazad5258
@hamzazad5258 3 ай бұрын
best video...i feel like im started doing something with code!
@NotSoz.
@NotSoz. 5 ай бұрын
thank you so much! this tutorial was really straightforward, and really helped me!
@frankbeats733
@frankbeats733 2 ай бұрын
this is just amazing thank you so much
@kazansergei
@kazansergei 5 күн бұрын
nice work!!
@pascalmmuzungu173
@pascalmmuzungu173 10 ай бұрын
Very Helpful!
@haaruncaderrr
@haaruncaderrr 29 күн бұрын
superrrr coolll
@alphabah770
@alphabah770 6 ай бұрын
I enjoyed it🎉
@rafaelsfasie5347
@rafaelsfasie5347 3 ай бұрын
Very good video. I learn more from you than from college. Btw for this tutorial I work in Linux Mint.
@voidgaming1402
@voidgaming1402 Жыл бұрын
Really good video
@johnlouchard4721
@johnlouchard4721 2 жыл бұрын
Muito obrigado por essa incrível explicação, de como colocar ícone ao lado do título.
@besherkitaz4529
@besherkitaz4529 7 ай бұрын
Brooo that is some Giga Chad content! Thanks.
@emiliocanals4520
@emiliocanals4520 2 жыл бұрын
This is amazing!
@hauzantsaaqifmushaddaq1155
@hauzantsaaqifmushaddaq1155 3 жыл бұрын
Thank you sir, it's cool to do😂
@beingzero7541
@beingzero7541 2 жыл бұрын
Wow!
@FRANCOPROHOLA
@FRANCOPROHOLA 10 ай бұрын
Nice video! :D
@md.moijeuddinmolla1328
@md.moijeuddinmolla1328 Жыл бұрын
You made it so easy bro.
@logeshwaran3016
@logeshwaran3016 3 жыл бұрын
Bro love you ❤️
@hostvind
@hostvind 2 жыл бұрын
that was my favorite colour )
@prizepig
@prizepig Жыл бұрын
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?
@HansiKlein
@HansiKlein 10 ай бұрын
Nuclear codes^^ great just greate!
@Ayushsharma-ly3wt
@Ayushsharma-ly3wt 6 ай бұрын
bro took the master degree of explaining
@alish1961
@alish1961 Жыл бұрын
Thanks 🙏
@ENGINEERINGSTUDENT-kk8sb
@ENGINEERINGSTUDENT-kk8sb Жыл бұрын
Thanks bro 😁
@ItsOluf
@ItsOluf Жыл бұрын
nice
@kanishkakamal9876
@kanishkakamal9876 Жыл бұрын
Thank you Bro Code.
@lucyledezma709
@lucyledezma709 3 жыл бұрын
Hello Bro!!!. Thanks for the tutorial!
@BroCodez
@BroCodez 3 жыл бұрын
thank you as always Lucy
@srijanpaul427
@srijanpaul427 3 ай бұрын
Thanks bro 😅
@mateoreardon9868
@mateoreardon9868 Ай бұрын
bros actually helpful
@unityhd3144
@unityhd3144 Жыл бұрын
good vid
@rubenc4696
@rubenc4696 2 ай бұрын
Thanks
@planktongunslinger5730
@planktongunslinger5730 9 ай бұрын
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)
@farhan8834
@farhan8834 Жыл бұрын
@wingerfivem
@wingerfivem 10 ай бұрын
Thank u
@sergebourlon186
@sergebourlon186 3 ай бұрын
How open python program only into window tkinter and no to the console cmd or VSC ?
@HussainAli-sb1dv
@HussainAli-sb1dv 8 ай бұрын
love u
@uuhju7004
@uuhju7004 3 жыл бұрын
ty
@EissaAlahdul
@EissaAlahdul Жыл бұрын
شكرا
@yahlikejazz
@yahlikejazz 6 ай бұрын
"Ery Noice" -Jeremy Clarkson
@Amir_Plays_non_stop
@Amir_Plays_non_stop 3 жыл бұрын
GUI are really exciting (❁´◡`❁)
@IThinkItsMe
@IThinkItsMe Ай бұрын
Brilliant video. Who's learning in 2024? Where's my 2024 family?
@techboomers8935
@techboomers8935 Жыл бұрын
Kindly face revealed , and also add Q/A ABOUT UR LIFE AND PROGRAMMING
@geniusac6474
@geniusac6474 Жыл бұрын
Bros a Genius
@SuperStarEevee
@SuperStarEevee Жыл бұрын
Thank you!
@BroCodez
@BroCodez Жыл бұрын
You're welcome!
@jeewonheo843
@jeewonheo843 2 жыл бұрын
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?
@davidcalebpaterson7101
@davidcalebpaterson7101 2 жыл бұрын
Try updating python since tkinter is built-in and comes with python.
@SAGARSINGH-ej4rj
@SAGARSINGH-ej4rj Жыл бұрын
Bro type smaller case "file=" not "File="
@gamemonster9179
@gamemonster9179 9 ай бұрын
Resize it to a smaller size
@gustavoaponte1814
@gustavoaponte1814 Жыл бұрын
Meow~! :3
@Amir_Plays_non_stop
@Amir_Plays_non_stop 3 жыл бұрын
Hmmm why the intro was soo fast? You spoke like you were in a hurry xD
@MOdithaFernando
@MOdithaFernando 10 ай бұрын
3:59 Nuclear launch codes😅
@prdus
@prdus 6 күн бұрын
"gooey"
@Wemadeit-
@Wemadeit- Жыл бұрын
You did it east
@anafel8124
@anafel8124 Жыл бұрын
BRO why am i getting this error?? ModuleNotFoundError: No module named 'tkinter'
@lordender_kitty_official
@lordender_kitty_official 5 ай бұрын
im getting the same thing.
@tee-hee9553
@tee-hee9553 2 жыл бұрын
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 ?😟
@TheJossephc
@TheJossephc 9 ай бұрын
Did you solve it?
@TheJossephc
@TheJossephc 9 ай бұрын
Could you solve it?
@dcsharma0107
@dcsharma0107 2 жыл бұрын
Hey Bro, how can we add .jpg images in the GUI window, can u please help me
@michael3k80
@michael3k80 2 жыл бұрын
got the same problem JPG is no go for now. error _tkinter.TclError: couldn't recognize data in image
@dcsharma0107
@dcsharma0107 2 жыл бұрын
@@michael3k80 I got the solution bro, i will share it with you
@michael3k80
@michael3k80 2 жыл бұрын
@@dcsharma0107 would be thankful for it. Its kinda strange that such a popular type is not supported
@dcsharma0107
@dcsharma0107 Жыл бұрын
from PIL import Image, ImageTk ------> (pip install pillow) image = Image.open("F:\\Python Files\\My Pic.jpg") photo = ImageTk.PhotoImage(image)
@apk_academy
@apk_academy Жыл бұрын
Hello bro
@daniaomari7238
@daniaomari7238 5 ай бұрын
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?
@daniaomari7238
@daniaomari7238 5 ай бұрын
Nvm it worked
@user-ju8ws6xz3i
@user-ju8ws6xz3i 3 ай бұрын
@@daniaomari7238 how?
@jackgoddard4521
@jackgoddard4521 Ай бұрын
I used the relative path and it works
@oximas-oe9vf
@oximas-oe9vf Жыл бұрын
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
@ImAbhishek3721
@ImAbhishek3721 Жыл бұрын
That's because You are not having the file named so in ur main project file
@gamemonster9179
@gamemonster9179 9 ай бұрын
U also have to make the image smaller
@associatedixon
@associatedixon Жыл бұрын
I noticed that 420x420 bro
@ease6146
@ease6146 9 ай бұрын
Can i use Visual Studio Code for this python code?
@pythooon
@pythooon 6 ай бұрын
late reply but yes
@ligdjumvidja8294
@ligdjumvidja8294 6 ай бұрын
420x420 is good 😁
@safarsafarov2968
@safarsafarov2968 Жыл бұрын
_tkinter. TclError: couldn't recognize data in image file "qwerty.jpg". Help me please with this error 🙏
@gamemonster9179
@gamemonster9179 9 ай бұрын
U have to resize it to a smaller size,I had the same prblem
@user-ju8ws6xz3i
@user-ju8ws6xz3i 3 ай бұрын
did you solve it? can you help me with it?
@user-ju8ws6xz3i
@user-ju8ws6xz3i 3 ай бұрын
@@gamemonster9179 how do I do that?
@gamemonster9179
@gamemonster9179 3 ай бұрын
@@user-ju8ws6xz3i go to the file,and crop it to a smaller size,or find another one which is smaller than that pic
@RiceFisH385
@RiceFisH385 7 ай бұрын
i juste started to learn python but the window is somehow not showing up
@RiceFisH385
@RiceFisH385 7 ай бұрын
nvm
@Izzy10k
@Izzy10k 2 жыл бұрын
Algorithm
@S_A_78
@S_A_78 7 ай бұрын
Comment!
@R1nd1m
@R1nd1m Жыл бұрын
anyone know what program hes using?
@Alden_Redstoner
@Alden_Redstoner 8 ай бұрын
Python?
@Wonsole
@Wonsole 2 ай бұрын
Pycharm
@yuiai9229
@yuiai9229 2 жыл бұрын
what is your IDE?
@oximas-oe9vf
@oximas-oe9vf Жыл бұрын
bro code uses visual studio code
@abdallahbadr4335
@abdallahbadr4335 Жыл бұрын
@@oximas-oe9vf No he actually uses PyCharm
@jhassee
@jhassee Жыл бұрын
ok Bro so if your listening, I'm willing to pay you to make me dangerous with this
@kedibey5089
@kedibey5089 Жыл бұрын
bruh
@Beastunleashed.07
@Beastunleashed.07 6 ай бұрын
window.geometry("420×420") in not working its says this _tkinter.TclError: bad geometry specifier "420×420" , anyone can help me plz
@pianomaster212
@pianomaster212 12 күн бұрын
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?
@EissaAlahdul
@EissaAlahdul Жыл бұрын
شكرا
@oximas-oe9vf
@oximas-oe9vf Жыл бұрын
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
@alexpython3506
@alexpython3506 Жыл бұрын
have you solved the problem? because i have the same problem :(
@oximas-oe9vf
@oximas-oe9vf Жыл бұрын
@@alexpython3506 I can't remember if I fixed it, Try using a different version of python and tell me if it works
@alexpython3506
@alexpython3506 Жыл бұрын
@@oximas-oe9vf i solved this problem after a few minutes i wrote this comment, i just change the file and changed his size i think this happen because of size of file just change size and try again
@oximas-oe9vf
@oximas-oe9vf Жыл бұрын
@@alexpython3506 ok thank you❤❤❤
@alexpython3506
@alexpython3506 Жыл бұрын
@@oximas-oe9vf you're welcome❤
@EissaAlahdul
@EissaAlahdul Жыл бұрын
شكرا
Python labels 🏷️
10:28
Bro Code
Рет қаралды 35 М.
Tkinter Beginner Course - Python GUI Development
38:59
NeuralNine
Рет қаралды 500 М.
ОСКАР vs БАДАБУМЧИК БОЙ!  УВЕЗЛИ на СКОРОЙ!
13:45
Бадабумчик
Рет қаралды 6 МЛН
Mom's Unique Approach to Teaching Kids Hygiene #shorts
00:16
Fabiosa Stories
Рет қаралды 16 МЛН
Modern Python logging
21:32
mCoding
Рет қаралды 163 М.
Making a Game in Python with No Experience
5:57
Goodgis
Рет қаралды 1,6 МЛН
Modern Graphical User Interfaces in Python
11:12
NeuralNine
Рет қаралды 1,5 МЛН
Python 101: Learn the 5 Must-Know Concepts
20:00
Tech With Tim
Рет қаралды 1,1 МЛН
Python GUI grid 🏢
9:43
Bro Code
Рет қаралды 19 М.
Use a Drag & Drop Editor to Make Tkinter Python GUI Applications!
11:16
5 Good Python Habits
17:35
Indently
Рет қаралды 444 М.
If __name__ == "__main__" for Python Developers
8:47
Python Simplified
Рет қаралды 388 М.
Functions in Python are easy 📞
10:38
Bro Code
Рет қаралды 423 М.
Зачем ЭТО электрику? #секрет #прибор #энерголикбез
0:56
Александр Мальков
Рет қаралды 631 М.
Лазер против камеры смартфона
1:01
NEWTONLABS
Рет қаралды 242 М.
Здесь упор в процессор
18:02
Рома, Просто Рома
Рет қаралды 380 М.
КРУТОЙ ТЕЛЕФОН
0:16
KINO KAIF
Рет қаралды 6 МЛН
Это - iPhone 16 и вот что надо знать...
17:20
Overtake lab
Рет қаралды 104 М.
Как удвоить напряжение? #электроника #умножитель
1:00
Hi Dev! – Электроника
Рет қаралды 922 М.