#here is some code
import pygame
pygame.init()
clock = pygame.time.Clock()
screen = pygame.setmode((800,600))
pygame.display.set_caption("my game")
pygame.display.set_icon(pygame.image.load('./imgs/icon.png'))
run = True
while run:
screen.fill(0,0,0)
for event in pygame.event.get():
if event.type == pygame.QUIT:
run = False
"""
your code here
"""
pygame.display.update()
clock.tick(60)