how to add files to a python with turtle repl
hello! i was thinking about making a flappy bird game with turtle module , so i made a new repl python with turtle.
but i didn't know how to add images to my repl , i don't talk about python or a pygame repl where i can simply upload file
@MehdiBenkhadra To upload a file go to your repl then open the files section. Then click on the three dots and click upload file. Then you should be able to upload an image.
If this helped please mark it as an answer.
thanks but i work with a repl (python with turtle) in this repl i don't find the file section.
@SeanXiao
You dont have the button? (see pic) @MehdiBenkhadra
in a repl python with turtle there isn't
@lightningrock
hmmm... maybe if you change it into a normal python? You could copy and paste the code. maybe this worked? @MehdiBenkhadra
hmmmm ok i'm gonnatry it
@lightningrock
ok if it works plz tell me @MehdiBenkhadra
if it works plz mark as answer.
thanks
@MehdiBenkhadra
Same problem. For some reason replit doesn't support image or gif files with replit turtle, and it gives some error. Best solution is to use trinket.io
The files section is still missing. I understand that it's good for absolute beginners. Still, I'd like to use the files section in "Python Turtle" repl.
I have the same problem - looks like the ability to upload files is not possible if using python (with Turtle)
You can, however, use Trinket.io to do this, identical code. Here's an example: https://trinket.io/python/5541da4d90