Generally when you create a Pygame window you will want a standard window with title bars and border. It is possible, though, to create a window that doesn't have these features so that the user will not be able to move or resize the window, or close it via the close button. One instance of such a use is the window used for splash screens. Some games can take a while to load because they contain many image and sound files. If there is nothing visible on the screen while this is happening, the player may feel that the game is not working and try to launch it again. To set a display with no borders, use the NOFRAME flag when calling set_mode. For example, the following line will create a "naked" window:
screen = pygame.display.set_mode(SCREEN_SIZE, RESIZABLE, 32)
Was this article helpful?