Answers for "pygame for event in pygame.event.get(): pygame.error: video system not initialized"

3

for e in p.event.get(): pygame.error: video system not initialized

import pygame as p
import sys

p.init()
screen = p.display.set_mode((800, 800))

while True:
    for e in p.event.get():
        if e.type == p.QUIT:
            p.quit()
            sys.exit(1)
Posted by: Guest on December-04-2020

Code answers related to "pygame for event in pygame.event.get(): pygame.error: video system not initialized"

Python Answers by Framework

Browse Popular Code Answers by Language