Skip to content
Sign upLog in
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
1

How to add image

jrjamir
jrjamir

I am working on a game and want to add an image, can somebody please tell me how, and how to change it? its in python

2 years ago

Voters

Comments

TopNew
2
PattanAhmed
PattanAhmed

@jrjamir
Hi Jacob,
It will be based on which type of game you are building. Like Pygame or Tkinter, If your game is based on these games I think you can try by PIL(Python-Imaging Library).
But if you are making just a random text-game or something like that, then you and I don't have any feature for uploading an image in this type of games.

Hope this helps
Please mark my answer if this helps

2 years ago
2
gibbsfreenergy
gibbsfreenergy

Sure I'd love to help you! Which language is this?

2 years ago
2
gibbsfreenergy
gibbsfreenergy

@jrjamir
Unfortunately Python can't generate pictures, I'm so sorry and if this answered your question please choose this as the correct answer!

2 years ago
2
PearPie123
PearPie123

@jrjamir
well it can using external modules so you could try that. Look into Tkinter and PIL(python-imaging library). I have used Tkinter but not PIL so not sure if PIL works

2 years ago
2
gibbsfreenergy
gibbsfreenergy

@PearPie123
well it all depends on what you are using. If you are willing to go to such an extent.

2 years ago
1
PearPie123
PearPie123

It depends on the type of game. Is it text-based? Are you using tkinter? Pygame? If it is text-based,I'm afraid there is no easy way.

2 years ago
Load more