screen.py 194 B

1234567891011
  1. import pygame.display
  2. __all__ = ['screen_size']
  3. # get screen resolution
  4. pygame.display.init()
  5. info = pygame.display.Info()
  6. screen_size = info.current_w, info.current_h
  7. pygame.display.quit()