-
Notifications
You must be signed in to change notification settings - Fork 208
Running from script does not work #359
Copy link
Copy link
Open
Description
The documentations states that pgzero can be used with for example IDLE by using import pgzrun and pgzrun.go() at the start and end of the script. This doesn't seem to work however, as creating an actor results in the following error being thrown when trying to run it:
pygame.error: No video mode has been set
A minimal example for reproduction would be:
import pgzrun
apple = Actor("apple")
def draw():
screen.clear()
apple.draw()
pgzrun.go()I'll check for reasons and maybe open a PR tomorrow.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels