Can someone tell me how to display an image with pygame. By the way I am using python 3.x.
wolfeater017
0
Light Poster
Recommended Answers
Jump to PostI thought pygame didn't work with 3.X?
If it does, it should still follow the same instructions.
1) Load image (pygame.image.load(image))
2) Blit onto display screen (screen_variable.blit(image, image.coordinates))
3) Update display (pygame.display.update())
Jump to PostI guess it is
windowSurface.blit(pi, 25, 25) or windowSurface.blit(pi, (25, 25))
but i never used pygame.
All 5 Replies
redyugi
5
Junior Poster in Training
wolfeater017
0
Light Poster
Beat_Slayer
17
Posting Pro in Training
wolfeater017
0
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.