Getting monitor size in python
I am using python and want to create a fullscreen window. I know about the pygame.FULLSCREEN flag but when I use that there's areas of black around the screen. Is there any way to get the monitor size using python so I can make the window the correct size? Alex Martelli Per the docs , pygame.display.Info gives you a VideoInfo object that has, among other attributes: current_w , current_h : Width and height of the current video mode, or of the desktop mode if called before the display.set_mode is called. pygame.display.list_modes gives you a list of the available fullscreen resolutions, e.g.,