python pygame crash | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

python pygame crash

okay, when i run it it starts up the screen and immediately closes can any one tell me why import pygame W, H = 1280, 720 WIN = pygame.display.set_mode((W, H)) def main(): run = True while run: for event in pygame.event.get(): if event.type == pygame.QUIT: run = False pygame.quit() if __name__ == "__main___": main()

12th Aug 2021, 2:39 PM
Tomoe
Tomoe - avatar
1 Answer
0
Ah, hard to notice when the underscores just merge together...
12th Aug 2021, 8:29 PM
Tomoe
Tomoe - avatar