how to get pygame window height size

Solutions on MaxInterview for how to get pygame window height size by the best coders in the world

showing results for - "how to get pygame window height size"
Amelia
22 Mar 2017
1import pygame
2pygame.init()
3
4window = pygame.display.set_mode((500, 500))
5x, y = window.get_size()
6
7print("The width is %s" %x)
8print("The height is %s" %y)