pygame how to get surface lenght

Solutions on MaxInterview for pygame how to get surface lenght by the best coders in the world

showing results for - "pygame how to get surface lenght"
Franco
02 Mar 2017
1screen = pygame.display.set_mode((700, 500))
2#get 2 variables for width and height
3x, y = pygame.display.get_surface()
4#get width
5x = screen.get_width()
6#get height
7y = screen.get_height()