hello, me again. When ever I try to add pictures it WONT LET ME ADD THEM. i download them, type all the code, and no image shows up at all. Can someone tell me how to correctly do it. do i have to define the code that imports pictures?
python user
7
Light Poster
Recommended Answers
Jump to PostPygame can load quite a number of image formats. Here is an example ...
# experiments with module pygame # free from: http://www.pygame.org/ # load and display an image using …
Jump to PostWhy don't you just run the sample code I gave you with the image_file = "mars.jpg" and make sure you have the image file in the working directory or give it the full path.
Avoid the crap you added to the start of the code!!!
All 5 Replies
AutoPython
5
Junior Poster
vegaseat
1,735
DaniWeb's Hypocrite
Team Colleague
python user
7
Light Poster
python user
7
Light Poster
vegaseat
1,735
DaniWeb's Hypocrite
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.