0

Pygame window opens then close

What was the code for stable our pygame window

25th Jun 2021, 8:34 AM
shubham
4 Answers
+ 2
You have to run a game loop(infinite loop) , inside that loop give the condition that if you press on close button then it close! For more info see Pygame documentation.
25th Jun 2021, 9:27 AM
Abhiyantā
Abhiyantā - avatar
+ 1
Search that error in Google you will get more details
25th Jun 2021, 9:33 AM
Abhiyantā
Abhiyantā - avatar
0
Ok but they give me pygame.error: video system is not iniatiallized
25th Jun 2021, 9:32 AM
shubham
0
Ohk bro
25th Jun 2021, 9:34 AM
shubham