save as GIF at the desktop, tried 3 different images...it keeps "no such data or directory" import turtle amul=turtle.Turtle() wn=turtle.Screen() wn.bgpic("pig.gif")
Hi, this didn't work for me at first but importing time and adding a time.sleep(5) at the end of the program helped and made it work and not shut off in 50-100 milliseconds.
I have problem, The function bgpic is not working in my python file I don't know why, I changed the it to GIF file by your method then also it is not working, whenever I use that function it shows this: Traceback (most recent call last): File "E:\Learning Python\Merry Christmas - 2.py", line 4, in wn.bgpic("Santa Claus Python 1.gif") File "C:\Python310\lib\turtle.py", line 1481, in bgpic self._bgpics[picname] = self._image(picname) File "C:\Python310\lib\turtle.py", line 477, in _image return TK.PhotoImage(file=filename, master=self.cv) File "C:\Python310\lib\tkinter\__init__.py", line 4093, in __init__ Image.__init__(self, 'photo', name, cnf, master, **kw) File "C:\Python310\lib\tkinter\__init__.py", line 4038, in __init__ self.tk.call(('image', 'create', imgtype, name,) + options) _tkinter.TclError: couldn't open "Santa Claus Python 1.gif": no such file or directory This is being showed whenever I use bgpic function. What should I do?
There weren't many sites that could tell me about bgpic().
That's why I was saved.
thanks you.
Pleasure :)
とても助かりました!ありがとう!
(in japanese➡I received your big help! Thank you very much!)
Glad to hear that :)
Your python turtle videos are so amazing. Thanks for sharing these :)
Glad you like them! :)
You voice is so peaceful, And thank s for your great video
Happy teachers day @amulya shetty ma'am...ilearnt a lot by watching ua vedios#tqsm
Thank you so much:)
Very nice one, just came to know practically that we can do web design also in python. Thanks.
Thank you so much. I am impressed for this nice explanation
save as GIF at the desktop, tried 3 different images...it keeps "no such data or directory"
import turtle
amul=turtle.Turtle()
wn=turtle.Screen()
wn.bgpic("pig.gif")
Check where python file is saved :)
any idea on how to change the console background color, with a custom color
I am having trouble with wn.bgpic (). Every time I put in the name of the .gif file, it gives me an error saying it cant read the data in the file
May be the image file is corrupted , try some other image.
And give me the full program please :)
Same problem
Same
Try giving full path or going into the exact path as the photo file. If it doesn't work, your photo is corrupted.
Which compiler you use, please tell me..... I can't run on pycharm Or vs code
Idle 😊
Thank you! this really helped me!
My pleasure:)
Why software you are using to run python
hello Maam if i want to install this turtle module so can we use pip install turtle in VS code?
In bgpic can we only use .gif? Why no other extensions
Hi, this didn't work for me at first but importing time and adding a time.sleep(5) at the end of the program helped and made it work and not shut off in 50-100 milliseconds.
Muchas gracias... me fue de gran ayuda
hi, Is it possible to do some tutorial on Tkinter or Pygame plz?
Currently i can't :)
But i will do that some day:)
this video was very helpful to me! you are very detailed! thank you soooo much!!
Perfect video I like it.
Thank you :)
Great video ma'am
I have the same problem as Red Jay and I tried to do what you said but it's not working!
Give me the program , i will check :)
can we add audio also in the background as like image? if yes , then what should be the code for this.
in my case it is saying turtle has no attribute "colour"
or bgcolour
use bgcolor :)
awesome video👍👍👍👍
Thank you:)
happy Sri Krishna janmashtami ......mam
Thank you:)
Same to you:)
stop thirsting
Thks a lot
mam how to draw a diagram on the background the image
wow ! thank you
Great 👍🏻🤝
GREAT GREAT...THANKS
My pleasure :)
Mam , ek baar hum wn mai jane ke baad firr se amul pe kaise shift honge.. 😅
My phyton in 3.9.6 why I'm I not able to use these in script mode ?
It showa invalid syntax in 3.8.2 .. How would i solve it?
Give me the program i will check :)
I am still waiting for my bubble sort program using number of iteration can you do faster plzz
Yes i will upload it in 2-3 days:)
Your voice is very good babe sweet and clear
the image step is not working...
what could be the solution please help maam
Why? Getting any error ?
Superb
Tq so much
Pleasure :)
But in my case there was only example one but python did not come
For me it's showing error of bgpic
Can you do this in pycharm please ?
In pychram end program with,
turtle.done()
or
turtle.exitonclick()
:)
Amuls Academy thank you! liked and subscribed 💯
Is it is use in script mode
Write the program in a file save that then execute :)
@@AmulsAcademy thnxx
Great!
how i can change titlebar icon of window? please!
I think I explained about title 😊
@@AmulsAcademy no, I want to do icon of program...
as soon as i run my turtle my code terminates and ends
i dunno why is it happening can anyone help me with this
Use turtle.done() at the end.
Great.
Thank you :)
I have problem, The function bgpic is not working in my python file I don't know why, I changed the it to GIF file by your method then also it is not working, whenever I use that function it shows this:
Traceback (most recent call last):
File "E:\Learning Python\Merry Christmas - 2.py", line 4, in
wn.bgpic("Santa Claus Python 1.gif")
File "C:\Python310\lib\turtle.py", line 1481, in bgpic
self._bgpics[picname] = self._image(picname)
File "C:\Python310\lib\turtle.py", line 477, in _image
return TK.PhotoImage(file=filename, master=self.cv)
File "C:\Python310\lib\tkinter\__init__.py", line 4093, in __init__
Image.__init__(self, 'photo', name, cnf, master, **kw)
File "C:\Python310\lib\tkinter\__init__.py", line 4038, in __init__
self.tk.call(('image', 'create', imgtype, name,) + options)
_tkinter.TclError: couldn't open "Santa Claus Python 1.gif": no such file or directory
This is being showed whenever I use bgpic function. What should I do?
Same bro did you find something can you help me now?
@@dhariwal_jii No man
Hacked_mind_404
nice
Mam gif can't come to my system how to solve this problem.
In my case it is saying turtle has no attribute "screen"
Please check spelling as well as case of "screen" in your program :)
type "S"creen
Mam how to convert jpg to gif in Unix system
Wow🤩
Thank you 😊
How write in idle shell
amazing!
Why 255 colormode???
omg finnaly a girl tutorial
So it doesn't matter
@@thebakerganimations1114 what?
why there is no translation?
What nationality are you?
tanks
It don’t work for me :(
Why ? Getting any error ?
Amulya's Academy yes but I tried to put the address and change the links that works for me, but thank you so much for the video and the answer
It's showing tkinter.TclError ,, y the tkinter is came here 🤔🤔
PLS HELP I need to fix it for school mine says can't read the data in the file. Any help will be appreciated
you need to use gif file :)
Amulya's Academy I have tried but it doesn’t work :(
That's it
"Title Pyton" no but great video
s
Are you a child or not?
this girl must be beautiful i want her
thankyou so much
thanku so much