Python 3 PyGame Script to Get the Desktop OS Monitor Resolution in Width and Height

Python 3 PyGame Script to Get the Desktop OS Monitor Resolution in Width and Height

Python 3 PyGame Script to Get the Desktop OS Monitor Resolution in Width and Height

import pygame
pygame.init()
infos = pygame.display.Info()
screen_size = (infos.current_w, infos.current_h)
Share on:

Hi, I'm Ranjith a full-time Blogger, YouTuber, Affiliate Marketer, & founder of Coding Diksha. Here, I post about programming to help developers.

Leave a Comment