How To Use Images as Backgrounds - Python Tkinter GUI Tutorial

  Рет қаралды 143,212

Codemy.com

Codemy.com

Күн бұрын

Пікірлер
@Codemycom
@Codemycom 4 жыл бұрын
▶️ Watch Entire Tkinter Playlist ✅ Subscribe To My KZbin 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 ✅ Buy a Codemy T-Shirt! Take $30 off with coupon code: youtube1 bit.ly/2VC9WUN ▶️ Get The Code bit.ly/3l8v3aE
@vaibhavsaran7124
@vaibhavsaran7124 3 жыл бұрын
please pin this comment, its not pinned
@Codemycom
@Codemycom 3 жыл бұрын
@@vaibhavsaran7124 yes it is
@coder101python3
@coder101python3 4 жыл бұрын
Yeah John has the best tkinter yt channel
@Codemycom
@Codemycom 4 жыл бұрын
Thanks!
@ramitpanangat7855
@ramitpanangat7855 4 жыл бұрын
Hope you make such videos for kivy too😍
@lahsuntati7088
@lahsuntati7088 3 жыл бұрын
@@Codemycom that's true bro I have learned a lot from this channel as compared to google
@faizan_khan660
@faizan_khan660 3 жыл бұрын
Have u checked *coding lifestyle 4u* for tkinter projects ?
@hankoiba9032
@hankoiba9032 4 жыл бұрын
i'm a django developper but i came here just to push the like button because you are so fricking cool , You Tutorials are on point and super helpful
@Codemycom
@Codemycom 4 жыл бұрын
Awesome, thanks!! I'm planning more Django videos soon :-p
@hankoiba9032
@hankoiba9032 4 жыл бұрын
@@Codemycom God bless you
@Codemycom
@Codemycom 4 жыл бұрын
@@hankoiba9032 :-)
@noahfahem3739
@noahfahem3739 3 жыл бұрын
Oh man! If I spent my life, thanking you, it will not be enough❤️❤️
@Codemycom
@Codemycom 3 жыл бұрын
You're very welcome!
@faizan_khan660
@faizan_khan660 3 жыл бұрын
Have u checked *coding lifestyle 4u* for tkinter projects ?
@lsantez
@lsantez 2 жыл бұрын
@@Codemycom how do i specify desktop in the direction?I think for that i need to specify the username but what if i dont know it?
@Codemycom
@Codemycom 2 жыл бұрын
@@lsantez Sorry, I have no idea what you're asking me
@lsantez
@lsantez 2 жыл бұрын
@@Codemycom how do i specify a username if i dont know wht it is for example in batch you can C:/Users/%USERNAME%/blah blah but how do i do it in python
@theinfamous4231
@theinfamous4231 2 жыл бұрын
I wish you were my python teacher in my college... I'm struggling a lot to learn python. From now onwards I won't cause I found you SIR. Thank you so much for your explanation. It was really an amazing explanation I have ever heard from anyone.....
@aadilsehrawat8121
@aadilsehrawat8121 3 жыл бұрын
Thanks man, this helped ! After watching few of his videos, I am convinced that buying his courses is gonna be worth it ! 🙌🏻
@Codemycom
@Codemycom 3 жыл бұрын
Glad it helped!
@programmingwithcybineer
@programmingwithcybineer 3 жыл бұрын
Thank you is not enough for you my friend. this was such a headache for me until i watched your video. thank you a million times over. you are truly one of a kind.😃😃😃❤❤💯💯
@Codemycom
@Codemycom 3 жыл бұрын
Glad you liked it!
@abdel-rahmansayed6384
@abdel-rahmansayed6384 2 жыл бұрын
If you get the error that the image can't be read just remove 'root' from this line bgimage_label = Label(root, image=bg_image) and if the image is jpg, convert it to png
@fentonmsu
@fentonmsu 4 жыл бұрын
Perfect timing, this what we were looking for our project. I was stuck on that problem last night. Your videos are the best. How would i add the voice to text within the canvas based on user's input. It works with a normal button that is not on a canvas. I think you hit on something in this video
@Codemycom
@Codemycom 4 жыл бұрын
Glad I could help! Just give your button a command that points to a function in the normal way you always do. Should work just fine...
@shivanshukamboj7940
@shivanshukamboj7940 3 жыл бұрын
This channel is the best .....your explanation is the best
@Codemycom
@Codemycom 3 жыл бұрын
Thank you so much 😀
@ajinkyasonwane4433
@ajinkyasonwane4433 4 жыл бұрын
I have learnt a lot from you. When I am not coding I keep murmuring tkinter and python, trying to mimic you 😃
@Codemycom
@Codemycom 4 жыл бұрын
Awesome
@surbhitagare1889
@surbhitagare1889 4 жыл бұрын
@@Codemycom you really helped me in doing my cs project I made a time table using buttons which on pressing gives message and a voice too a bigggggg thank you😃👍❤️
@Codemycom
@Codemycom 4 жыл бұрын
@@surbhitagare1889 Awesome!
@surbhitagare1889
@surbhitagare1889 4 жыл бұрын
@@Codemycom thank you very much love from india
@guytas
@guytas 8 ай бұрын
This is great! but... tell me. is there an easier way to... ok, starting with the beginning. I used your second method to set the background image. That is all working find until you want to change the background image... Since we write text directly on the canvas, deleting the old image and setting up a new one loose all the text. I really wish to change the background at night time to reduce the light. Any trick for me?
@m_abhijit_
@m_abhijit_ 3 жыл бұрын
I wish if i could like this video 100 times 😀👍🏻
@Codemycom
@Codemycom 3 жыл бұрын
Thanks!
@wingielee
@wingielee 4 жыл бұрын
am always tracking your videos thinking i"l one day be the first to watch...now am the 46th person just after 10min. awesome always!!!!!
@Codemycom
@Codemycom 4 жыл бұрын
Ha fun!
@mihai0404
@mihai0404 3 жыл бұрын
Great video as always, but what If I want the buttons to be invisible as well, so we just see the text inside them ?
@faizan_khan660
@faizan_khan660 3 жыл бұрын
Have u checked *coding lifestyle 4u* for tkinter projects ?
@jeanantoine1430
@jeanantoine1430 Жыл бұрын
Excellent tutorial!!! Very easy to follow!
@Codemycom
@Codemycom Жыл бұрын
Glad you enjoyed it!
@6agu652
@6agu652 4 жыл бұрын
I know I'm like really late, but I've been wondering, how would I set the text background as transparent so I can see the background image through the text?
@bibashshrestha9471
@bibashshrestha9471 3 жыл бұрын
I have been searching for the same thing but couldnot find anything about that.Have you got any idea till now?
@pratyay2sarkar
@pratyay2sarkar 3 жыл бұрын
Man your videos are truly a lot of help! 🔥🔥
@Codemycom
@Codemycom 3 жыл бұрын
Glad you're enjoying them!
@iamnobody9988
@iamnobody9988 3 жыл бұрын
Well found today and gave a sub :) Thanks for providing such content
@Codemycom
@Codemycom 3 жыл бұрын
Welcome aboard!
@Alex-nk3tl
@Alex-nk3tl 10 ай бұрын
Hi thank you for the tutorial, is there a way to add animted background like a video or a gif? Thank you
@Codemycom
@Codemycom 10 ай бұрын
yes but not easily
@shreyaumesh3978
@shreyaumesh3978 3 жыл бұрын
Hey, I get a blank screen when I execute that. The photos are in the same directory as the code, any idea what I can do to fix it?
@sitahammond5276
@sitahammond5276 3 жыл бұрын
same problem here
@avpzquizi2103
@avpzquizi2103 3 жыл бұрын
You know how to Fix this problem now? Because i have the same problem can you help me?
@coderanger7708
@coderanger7708 3 жыл бұрын
Search this in Google as it's kinda hard to explain why it happens. Python garbage collector and tkinter referencing don't go hand in hand, so you need to create a separate reference of the image to make it work
@toxxmoloi1873
@toxxmoloi1873 4 жыл бұрын
Can you please make videos on the canvas widget, more in dept information
@Codemycom
@Codemycom 4 жыл бұрын
I have a bunch of videos in the playlist on canvas
@jordanyoung7968
@jordanyoung7968 Жыл бұрын
when you resize the program window the background doesnt fill and the text is no longer centered. other than that your tutorial works well but the code please i need to see the whole window going back and fourth and replying alot makes it harder to read.
@judehathway7210
@judehathway7210 4 жыл бұрын
ive been waiuting for this a long time!!!
@Codemycom
@Codemycom 4 жыл бұрын
Awesome
@faizan_khan660
@faizan_khan660 3 жыл бұрын
Have u checked *coding lifestyle 4u* for tkinter projects ?
@daniellowe8402
@daniellowe8402 Жыл бұрын
for some reason root and bg arent defined in your code but its giving me an error does it have anything to do with your code editor or did you define those terms off screen? edit nvm im just dumb
@funnyclips2696
@funnyclips2696 2 жыл бұрын
Wow! I've learned a lot from this video, thanks Elder👌🏾 Awesome!!!!
@vaibhavsaran7124
@vaibhavsaran7124 3 жыл бұрын
Could you please share your code Github Link makes it a lot easier to take the code for project
@Codemycom
@Codemycom 3 жыл бұрын
It's always in the pinned comment.
@vaibhavsaran7124
@vaibhavsaran7124 3 жыл бұрын
@@Codemycom but you haven't pinned the comment
@Codemycom
@Codemycom 3 жыл бұрын
@@vaibhavsaran7124 yes I have
@davidreviews8413
@davidreviews8413 4 жыл бұрын
Thanks man...Love your videos.... Keep making !
@Codemycom
@Codemycom 4 жыл бұрын
Thanks, will do!
@chironpugh162
@chironpugh162 3 жыл бұрын
I tried this (canvas method) and my image isn't being displayed properly. It hugs in the northwest corner but the image is too big. How do I make it so that the image fits perfectly inside of the window?
@psybertron2650
@psybertron2650 3 жыл бұрын
from PIL import Image, ImageTk Img = Image.open(path) Img = img.resize(width,height) tk_img = ImageTk.PhotoImage(img) can = tk.canvas(root,width=width, height=height) can.pack(fill="both", expand=True) can.create_image(0,0,image=tk_img,anchor="nw")
@fearvalue1441
@fearvalue1441 Жыл бұрын
any idea how to make a matplotlib chart background transparent in a tkinter window!?
@henryfox2001
@henryfox2001 Жыл бұрын
Hello and thank you for your explanation. I have a problem with my code. I followed as you did in the video up to 19:54 minutes. I changed somethings like the image name and it is in the same directory as the code, also the size of the picture, but I don't think those changes are the problem. What am I doing wrong? Traceback (most recent call last): File "d:\Documents\byu-idaho\2_semester\cse111\w12\personal_budget\teste_bg_image.py", line 17, in my_canvas.create_image(0,0, Image=bg) File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2800.0_x64__qbz5n2kfra8p0\lib\tkinter\__init__.py", line 2819, in create_image return self._create('image', args, kw) File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2800.0_x64__qbz5n2kfra8p0\lib\tkinter\__init__.py", line 2805, in _create return self.tk.getint(self.tk.call( _tkinter.TclError: unknown option "-Image"
@Codemycom
@Codemycom Жыл бұрын
Image should be lowercase on line 17. image
@henryfox2001
@henryfox2001 Жыл бұрын
Thank you so much!
@Codemycom
@Codemycom Жыл бұрын
@@henryfox2001 sure thing
@clchan8053
@clchan8053 2 жыл бұрын
when doing in mac os, buttons still having background color
@kirollssabri4651
@kirollssabri4651 4 жыл бұрын
Can you make a video to dynamically resize the background and thank you for the videos i really learned a lot because of you
@Codemycom
@Codemycom 4 жыл бұрын
Hm, interesting idea...I'll think on it.
@kirollssabri4651
@kirollssabri4651 4 жыл бұрын
@@Codemycom Thank you so much ❤️
@jamesflynn9529
@jamesflynn9529 4 жыл бұрын
How do you remove the white boarder around the canvas (background image)?
@jamesflynn9529
@jamesflynn9529 4 жыл бұрын
Never mind I found it in a later video. kzbin.info/www/bejne/aWPZY6WahtOLrLM -4:00
@Codemycom
@Codemycom 4 жыл бұрын
Was just about to say that :-p
@svaruncelan694
@svaruncelan694 2 жыл бұрын
highlightthickness=0 when u define the canvas
@jacery
@jacery 2 жыл бұрын
You just earned a sub! Is there any way you could make a video on using videos or image sequences that loop as a background in tkinter?
@Codemycom
@Codemycom 2 жыл бұрын
Sorry no, video in tkinter is not really a thing
@mahashiah
@mahashiah Жыл бұрын
how i can create a tk.text or tk.entry with fg= transparent?
@codingstudio8865
@codingstudio8865 4 жыл бұрын
Sir, is this video related to gradient background?
@Codemycom
@Codemycom 4 жыл бұрын
Of course. Watch it and see lol it relates to any image background. Just use a gradient image as your background image.
@poseidonbrozeus5888
@poseidonbrozeus5888 4 жыл бұрын
HOW are you SO helpful!
@Codemycom
@Codemycom 4 жыл бұрын
Glad you think so!
@dinhdthanh4429
@dinhdthanh4429 3 жыл бұрын
Hello, if i dont want use PTS to take background colour, can i insert .PNG image instead?
@hiwab41
@hiwab41 4 жыл бұрын
Keep going brother
@Codemycom
@Codemycom 4 жыл бұрын
Always
@adilnassar2364
@adilnassar2364 4 жыл бұрын
hello sir! i dont get my background image and texts one upon the other. I get it image first and the the rest of them bottom of it. Can you please help me?
@pouyabaniadam3084
@pouyabaniadam3084 2 жыл бұрын
Thanks John. That was great❤️
@Codemycom
@Codemycom 2 жыл бұрын
Glad you enjoyed it!
@lohithreddy9685
@lohithreddy9685 2 жыл бұрын
Hello sir How to do the same with checkbutton, the background of the checkbutton is white,how do we change the background of the checkbutton to merge with background image please help me sir
@rosehelen1110
@rosehelen1110 3 жыл бұрын
Can u plz tell how I can add button images with another image as a background I've tried this method bit I get a grey square background in my button I don't know how to get rid of that , I can't set a background colour cuz there are variety of colours in the bg image Can u plz help
@sudharsanvanamali1514
@sudharsanvanamali1514 4 жыл бұрын
Sir I am getting tclerror no such directory. What should I do . Please help me sir
@Codemycom
@Codemycom 4 жыл бұрын
Check your code for typos. Did you create that directory?
@sudharsanvanamali1514
@sudharsanvanamali1514 4 жыл бұрын
@@Codemycom yes sir
@Codemycom
@Codemycom 4 жыл бұрын
@@sudharsanvanamali1514 in the correct place?
@cyborgzone7143
@cyborgzone7143 Жыл бұрын
How can we use video files as background
@beatboss9275
@beatboss9275 3 жыл бұрын
Why are we passing root in every methods like Button(root,) Label(root,) I have used tkinter without passing window name(root here) and it works just fine. what is the difference between them(using root and not using root).
@hamzahassan6364
@hamzahassan6364 3 жыл бұрын
Can we use background video in Tkinter using canvas?
@Codemycom
@Codemycom 3 жыл бұрын
Not really
@HolyPiyush
@HolyPiyush Жыл бұрын
Hello sir, Sir when I run the code, it comes out good, but, after expanding the window to its maximum size, the background image does not fill the rest of the portion left on the window. Please help.... Thank you Love from India
@DIYGURUJI
@DIYGURUJI 4 жыл бұрын
Video on moving widgets other than canvas with keys in tkinter
@hipstermonkey3510
@hipstermonkey3510 4 жыл бұрын
Managed to style root window with JPEG image as background using pillow and place attribute. While trying to do the same for toplevel window it says photoImage has no attribute place. (Already made variable a global variable in the function definition)
@subatomic3426
@subatomic3426 3 жыл бұрын
any way to do the same for checkbuttons?
@Codemycom
@Codemycom 3 жыл бұрын
try it and see
@subatomic3426
@subatomic3426 3 жыл бұрын
@@Codemycom I tried its not working :(
@DEEPAKTHAKUR-tm7tr
@DEEPAKTHAKUR-tm7tr 3 жыл бұрын
Showing error _tkinter.TclError: couldn't recognize data in image file "D:\Petrol Pump Management System\Petro Station PRO\LoginFrame.png" >>>
@shubhamshejaval8526
@shubhamshejaval8526 3 жыл бұрын
try different image format
@tishaanants
@tishaanants 3 жыл бұрын
PNG is fine, your image is invalid use another image
@muhdzimam1792
@muhdzimam1792 3 жыл бұрын
Can this be implement in raspberry pi ?
@Codemycom
@Codemycom 3 жыл бұрын
sure
@codecircus
@codecircus 3 жыл бұрын
Thank you for this video!
@Codemycom
@Codemycom 3 жыл бұрын
Welcome!
@zabijahesh4097
@zabijahesh4097 3 жыл бұрын
Hello Dear Sir really interesting your lecture I am new in Python and I want to be a Programmer so how to start from where need your opnion thanks
@Codemycom
@Codemycom 3 жыл бұрын
I would start learning all you can about Python. I have a free python playlist on my channel, I would start there.
@zabijahesh4097
@zabijahesh4097 3 жыл бұрын
@@Codemycom Thanks but which program also mandatory with Python Programming?
@Codemycom
@Codemycom 3 жыл бұрын
@@zabijahesh4097 There is nothing mandatory
@rooseveltsantosjunior655
@rooseveltsantosjunior655 Жыл бұрын
Can I create a entry this way?
@Codemycom
@Codemycom Жыл бұрын
how do you mean?
@komodojack4346
@komodojack4346 4 жыл бұрын
hi john elder did you know you can press Ctrl+b in sublime text to run your code?
@Codemycom
@Codemycom 4 жыл бұрын
Of course, but it's not a good way to do it and doesn't always work and I don't want to promote doing that to students...especially newbies.
@komodojack4346
@komodojack4346 4 жыл бұрын
@@Codemycom ok but can pls tell what is bad about running it with sublime text
@Codemycom
@Codemycom 4 жыл бұрын
@@komodojack4346 It's not a proper terminal, it doesn't always work and can give errors. We want to use professional tools and do things the right way. Why promote bad habits?
@komodojack4346
@komodojack4346 4 жыл бұрын
@@Codemycom ok
@domzcafe6305
@domzcafe6305 3 жыл бұрын
How can i make a curve line
@noudderoos1860
@noudderoos1860 8 ай бұрын
For some weird reason my PIL doesnt get imported... Im using this code: from PIL import ImageTk, Image Any help?
@Codemycom
@Codemycom 8 ай бұрын
what have you done differently from the video? Used different tools? Failed to pip install Pillow?
@zeeshanalavi975
@zeeshanalavi975 2 жыл бұрын
can we replace images with videos as background
@Codemycom
@Codemycom 2 жыл бұрын
No, not really
@phantom.troupe.00
@phantom.troupe.00 2 жыл бұрын
i get a permission denied error when tkinter tries to open up an image .Any clue on how to fix?
@Codemycom
@Codemycom 2 жыл бұрын
No, you'll have to google the exact error
@alont20
@alont20 4 жыл бұрын
Hi, any idea why do i get the below error msg? _tkinter.TclError: couldn't recognize data in image file "C:\projects\socix\vld-dev-env\IDELauncher\images\Background-1.gif"
@alont20
@alont20 4 жыл бұрын
same error with png _tkinter.TclError: couldn't recognize data in image file "images\hulk.png"
@deepanshurai8281
@deepanshurai8281 3 жыл бұрын
Sir I'm getting error when I am using the "file" attribute and its shows blank white space if not used the fill attribute
@deepanshurai8281
@deepanshurai8281 3 жыл бұрын
couldn't recognize data in image file "E:\Matheran\Deep.jpeg" what does this error means..
@blazexiytb
@blazexiytb 3 жыл бұрын
Can i do this with gifs too?
@Codemycom
@Codemycom 3 жыл бұрын
I doubt it
@vaibhavsaran7124
@vaibhavsaran7124 3 жыл бұрын
Also I tried your code it does not work
@Codemycom
@Codemycom 3 жыл бұрын
lol of course it works. You can literally watch the video and see that it does. You have a typo.
@cyborgzone7143
@cyborgzone7143 Жыл бұрын
Thanks man you are the best
@Codemycom
@Codemycom Жыл бұрын
Welcome!
@manukushaldm133
@manukushaldm133 4 жыл бұрын
Sir how to link registration buttton to register page
@noname4011
@noname4011 3 жыл бұрын
Why do I have "couldn't recognize data in image file"?
@Codemycom
@Codemycom 3 жыл бұрын
because it can't recognize the data in the image file :-p
@noname4011
@noname4011 3 жыл бұрын
@@Codemycom So how do can I solve the problem?
@Codemycom
@Codemycom 3 жыл бұрын
@@noname4011 Use a valid image file
@noname4011
@noname4011 3 жыл бұрын
@@Codemycom Yess, thank you! 👍
@albertpiaggio3471
@albertpiaggio3471 3 жыл бұрын
i keep getting an error no such file or directory idk how to find it.
@chironpugh162
@chironpugh162 3 жыл бұрын
you have to use a .png or .gif file. I got the same thing when I was trying to use a .jpg.
@chrisdominic2963
@chrisdominic2963 4 жыл бұрын
Hey I'm getting the following error when using the PIL File "C:\Users\lenovo\AppData\Local\Programs\Python\Python38-32\lib\site-packages\PIL\Image.py", line 2882, in open fp.seek(0) AttributeError: 'str' object has no attribute 'seek'
@Codemycom
@Codemycom 4 жыл бұрын
Try googling: "AttributeError: 'str' object has no attribute 'seek'"
@naokembetonio3215
@naokembetonio3215 4 жыл бұрын
thanks, that was very interesting
@Codemycom
@Codemycom 4 жыл бұрын
Glad you enjoyed it
@ArmiBHCR
@ArmiBHCR 4 жыл бұрын
Hey bro is there anyway to remove this white border?
@Codemycom
@Codemycom 4 жыл бұрын
Yeah keep watching the playlist, I go over that
@estudosacademicos5237
@estudosacademicos5237 3 жыл бұрын
Thank you teacher... very good...
@Codemycom
@Codemycom 3 жыл бұрын
Glad you liked it!
@sams_sends6267
@sams_sends6267 3 жыл бұрын
I think the version of python im on doesn't have create image that sucks i was gonna do this for my menu for my A level project....
@Codemycom
@Codemycom 3 жыл бұрын
Of course it does. Whatever problem you are having has nothing to do with the version of python you're using.
@manarmazkatli
@manarmazkatli 3 жыл бұрын
Hello, I want to change the background. But it didn't work out. Can you help me?
@Codemycom
@Codemycom 3 жыл бұрын
Just watch and follow the video. If it didn't work, you typed something wrong. Try again.
@manarmazkatli
@manarmazkatli 3 жыл бұрын
@@Codemycom Thank you!
@firojacharya
@firojacharya 4 жыл бұрын
is there any way to set .gif file as background in tkinter ?
@Codemycom
@Codemycom 4 жыл бұрын
this method works with gif
@ThemistaG
@ThemistaG 2 жыл бұрын
can you set a gif file as the background?
@Codemycom
@Codemycom 2 жыл бұрын
Not really
@shivanshukamboj7940
@shivanshukamboj7940 3 жыл бұрын
How to put multiple changing background images
@Codemycom
@Codemycom 3 жыл бұрын
In the same way...just use a timer
@shivanshukamboj7940
@shivanshukamboj7940 3 жыл бұрын
@@Codemycom how do I provide different image address in real time or I am saying wrong ???
@Codemycom
@Codemycom 3 жыл бұрын
@@shivanshukamboj7940 depends on what you mean by real time...
@shivanshukamboj7940
@shivanshukamboj7940 3 жыл бұрын
@@Codemycom please elaborate this or it will be fantastic if you make a video on this
@Codemycom
@Codemycom 3 жыл бұрын
@@shivanshukamboj7940 I can't, I'm not sure what you're talking about
@kishorekumar790
@kishorekumar790 4 жыл бұрын
John thanks for such an amazing playlist. Quick question, can the Transparent widget hack used for the 1st method to get rid of the widget bg?
@moris933
@moris933 4 жыл бұрын
can you make something like "CSV File editor with Python" ??
@Codemycom
@Codemycom 4 жыл бұрын
I have a whole course on that at Codemy.com
@greatindianbuilder2491
@greatindianbuilder2491 3 жыл бұрын
Tkinter is never able to read image data. and its frustrating af.
@sams_sends6267
@sams_sends6267 3 жыл бұрын
Object has not attribute '.create_image ' :(
@gughanbabu6620
@gughanbabu6620 3 жыл бұрын
how to use diffrent images on diffrent pages in tkinter ( ex: one back in login page and another one in next page)
@Codemycom
@Codemycom 3 жыл бұрын
In the same way. Make the image variable global
@paulp-g4u
@paulp-g4u 3 жыл бұрын
Thanks man 👍
@Codemycom
@Codemycom 3 жыл бұрын
You bet
@mrinmaydas7601
@mrinmaydas7601 3 жыл бұрын
Can you show me how to make a live wallpaper using tkinter 🥺🥺
@Codemycom
@Codemycom 3 жыл бұрын
No
@paulo.galvao
@paulo.galvao 3 жыл бұрын
you may change it using time.sleep(2)... or draw it in canvas, putting stars randomly with time sleep...
@mahdighasemi724
@mahdighasemi724 3 жыл бұрын
So thanks👍🏻💗
@Codemycom
@Codemycom 3 жыл бұрын
You’re welcome
@p.jeevan2467
@p.jeevan2467 Жыл бұрын
How to add image on it
@Codemycom
@Codemycom Жыл бұрын
What do you mean?
@TheblackTutorial
@TheblackTutorial 4 жыл бұрын
Sos mi héroe
@insertx2k_dev
@insertx2k_dev 3 жыл бұрын
It returns the error image "pyimage1" doesn't exist, while I am completely sure that I have specified the directory of the image, Here is my code. from tkinter import * # As usual appico = PhotoImage(file="renpy.jpg") img_proc = Label(about_page, image=appico) img_proc.grid(column=0, row=2) the image is stored in the same directory this py file is in, and also it is named as renpy.jpg.
@peterpacsay8358
@peterpacsay8358 3 жыл бұрын
I am not sure, but I think it is only works if your image pixels are also 800x500
@Codemycom
@Codemycom 3 жыл бұрын
huh?
@peterpacsay8358
@peterpacsay8358 3 жыл бұрын
Sorry! now I see you have mentioned it right at the start.
@Codemycom
@Codemycom 3 жыл бұрын
@@peterpacsay8358 yep
@craftapple9446
@craftapple9446 3 жыл бұрын
Cara você é o melhor mim ajudou muito thanks
@borispasynkov1404
@borispasynkov1404 3 жыл бұрын
Dosen't work at all, displays the error TclError: image "pyimage5" doesn't exist.
@Codemycom
@Codemycom 3 жыл бұрын
what did you do differently from the video?
@Russia_-dy7ys
@Russia_-dy7ys 3 жыл бұрын
how to use .grid instead of .pack
@Codemycom
@Codemycom 3 жыл бұрын
I have dozens of videos on the playlist using grid.
@Russia_-dy7ys
@Russia_-dy7ys 3 жыл бұрын
@@Codemycom ok two more question _how to call a fonction that is inside another to a function _how can create a data base to get and store all my files and applications location
@Russia_-dy7ys
@Russia_-dy7ys 3 жыл бұрын
another* fonction
@Codemycom
@Codemycom 3 жыл бұрын
@@Russia_-dy7ys try functionone(functiontwo()) and I have lots of videos on databases with tkinter
@vaibhavsaran7124
@vaibhavsaran7124 3 жыл бұрын
You say check the pin comment where is it ??
@Codemycom
@Codemycom 3 жыл бұрын
It's the first comment listed in the comment section...the one with all the info in it.
@axel9717
@axel9717 3 жыл бұрын
Thanks you so much
@Codemycom
@Codemycom 3 жыл бұрын
Most welcome
@axel9717
@axel9717 3 жыл бұрын
@@Codemycom do you know if i can u Canvas for gif too ? I create my and i want to use it like the galaxy image
@Codemycom
@Codemycom 3 жыл бұрын
@@axel9717 Yes but not in the way you think, it's fairly complicated
@axel9717
@axel9717 3 жыл бұрын
@@Codemycom do you have a video or a link to explain ? I didn’t find on the web
@Codemycom
@Codemycom 3 жыл бұрын
@@axel9717 No, sorry
@m.ali_202
@m.ali_202 2 жыл бұрын
Sours Cod?
@Codemycom
@Codemycom 2 жыл бұрын
Always in the pinned comment
@rafe_nyes
@rafe_nyes 7 ай бұрын
fortnite next?
@iulianslabu1708
@iulianslabu1708 7 ай бұрын
i gyat to program this fn
@Codemycom
@Codemycom 7 ай бұрын
lol
@sooryaskills5493
@sooryaskills5493 3 жыл бұрын
Please make a tutorial on py game.
@Codemycom
@Codemycom 3 жыл бұрын
It's on my list
@ahmedk.n8126
@ahmedk.n8126 3 жыл бұрын
Can't I just make bg = None ? just a guess /:
@Codemycom
@Codemycom 3 жыл бұрын
Try it and see
@ahmedk.n8126
@ahmedk.n8126 3 жыл бұрын
@@Codemycom it doesn't work lol
@Codemycom
@Codemycom 3 жыл бұрын
@@ahmedk.n8126 lol
Treeview - Python Tkinter GUI Tutorial #116
20:21
Codemy.com
Рет қаралды 142 М.
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 700 М.
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН
Using images in tkinter [ including how to scale them ]
31:57
Using Entry Boxes On Canvas - Python Tkinter GUI Tutorial #149
16:36
Create a GUI app with Tkinter - Step by Step Tutorial
23:56
Python Simplified
Рет қаралды 619 М.
Make Tkinter Look 10x Better in 5 Minutes (CustomTkinter)
4:40
TurbineThree
Рет қаралды 357 М.
Using Databases With TKinter - Python Tkinter GUI Tutorial #19
9:40
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 700 М.