Code

Initialize/uninitialize a display in Pygame

Note that display.init() should be called during pygame.init() automatically. Also, quitting (uninitializing) the display will stop showing every Surface drawn on the display Surface. You can initialize, check initialization, and unitialize a display with the following commands:

pygame.display.init() pygame.display.get_init() #will return true since display is initialized pygame.display.quit()

0

1

Updated 2021-06-08

Tags

Python Programming Language

Data Science