how to set pygame icon code example Example: how to set the icon of the window in pygame icon = pygame.image.load('icon.png') pygame.display.set_icon(icon)