If you are running Pygame on a UNIX system, like a Linux server, try using a DummyVideoDriver:
import os
os.environ["SDL_VIDEODRIVER"] = "dummy"
More Related Contents:
- Pygame window not responding after a few seconds
- How do I chain the movement of a snake’s body?
- pygame.event.get() not returning any events when inside a thread
- How to make smooth movement in pygame
- Pygame collision with masks
- How to run multiple while loops at a time in Python
- How can I play an mp3 with pygame?
- What is a good way to draw images using pygame?
- Pygame clock and event loops
- How to Center Text in Pygame
- How to block calls to print?
- Framerate affect the speed of the game
- Loop over a list containing path to sound files
- Running a if statement only once in pygame
- pygame image background does not match main background
- How to create bullets in pygame? [duplicate]
- pygame.error “couldn’t open image.png” only in command prompt
- How can I move the ball instead of leaving a trail all over the screen in pygame?
- Basic networking with Pygame
- Adding a particle effect to my clicker game
- How to move a no frame pygame windows when user click on it?
- How to move a no frame pygame windows when user clicks on it?
- Pygame make sprite walk in given rotation
- How to add pause mode to Python program
- how to center image inside a rect pygame
- PyGame rect.move movement not functioning properly
- Check collision between a image and a line
- Changing colour of a surface without overwriting transparency
- What is the difference between super() with arguments and without arguments?
- How do I change the volume of the sound or music in PyGame?