import pygame
pygame.init()



screen_width = 800
screen_hight = 600

screen_surface = pygame.display.set_mode((screen_width, screen_hight))
pygame.display.set_caption("test 1")

clock = pygame.time.Clock()

game_status = True
while game_status:
    events = pygame.event.get()
    for event in events:
        print(event)
        if event.type == pygame.QUIT:
            game_status = False

    pygame.display.update()
    clock.tick(20) #tps

pygame.quit()
quit()