What exactly does pygame.display.set_mode() do?
问题 I've recently started to play around with the pygame python library and I just wanted to see if I was understanding something correctly: The following is some code that sets up the window. In the line that says: windowSurface = pygame.display.set_mode((WINDOWWIDTH, WINDOWHEIGHT), 0, 32) , does display refer to a module inside of pygame and is set_mode the name of a class in that module? Is this correct? from pygame.locals import * # set up pygame pygame.init() # set up the window WINDOWWIDTH