If we want to put the window in the center of the screen we can use this:
import os
os.environ['SDL_VIDEO_CENTERED'] = '1'
Most of the pygame windows are made by :def main():
background_colour = (25,25,255)
screen = pygame.display.set_mode((320,240))
screen.fill(background_colour)
This will create this window:![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvvXOky9WxnIbtLxHdHG2-_F_bKQzbFGZUOOlQHv2GDbHnvWtZoiLf2Mklzwey4a5lsn5S5HNSvzh7_JOciWUdAf7V_VMpx15BQsULiRD9Y4mrf0H3lQmaIQBzGo3zhE628A0zdldXDCeJ/s320/pygame-win-001.png)
Now if you don't need a title window, like the next image...
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMgP7iuu-U_HEgKvMRru_T1tJ5VrayHS9nfaxqrmmh9RMmivuYmZor1QcIuaRKh9ZkYOUGubmnvnNzafgTP0XxOiB9XaUa7dlsF7btkeEhvnlIYSK-ypcFxLfCJExTiGKdQHKrLcAbR0V-/s320/pygame-win-002.png)
... then you need to use this source code :
screen = pygame.display.set_mode((320,240),NOFRAME)