import pygame

pygame.init() #inicjalizacja modułu

#Tworzenie okna
SCREEN_WIDTH = 800
SCREEN_HEIGHT = 600

screen_surface = pygame.display.set_mode( (SCREEN_WIDTH,SCREEN_HEIGHT) )
pygame.display.set_caption("Pierwsza Gra") #nazwa okienka

game_status = True

while game_status:
    #odczytywanie zdarzeń
    events = pygame.event.get()

    for event in events:
        #print(event)
        if event.type == pygame.QUIT:
            game_status = False
        
   
    pygame.display.update()
    pass

pygame.quit()
quit()