I recently started playing with the python pygame library, and I just wanted to know if I understand something correctly:
Below is the code that sets the window. In a line that reads:
windowSurface = pygame.display.set_mode((WINDOWWIDTH, WINDOWHEIGHT), 0, 32)
displayrefers to a module inside pygame and is set_modethe class name in this module? Is it correct?
from pygame.locals import *
pygame.init()
WINDOWWIDTH = 400
WINDOWHEIGHT = 400
windowSurface = pygame.display.set_mode((WINDOWWIDTH, WINDOWHEIGHT), 0, 32)
pygame.display.set_caption('Animation')
user637965
source
share