import pygame
pygame.init()

SCREEN_WIDTH = 800
SCREEN_HEIGTH = 600

screen_surface = pygame.display.set_mode((SCREEN_WIDTH, SCREEN_HEIGTH))
pygame.display.set_caption("PIERWSZA GRA")

clock = pygame.time.Clock()

game_status = True

while game_status:
    # events = pygame.display.get()
    events = pygame.event.get()

    for event in events:
        print(event)
        if event.type == pygame.QUIT:
            game_status = False
        pass

    pygame.display.update()
    clock.tick(60)
    pass

pygame.quit()
quit