Загрузка данных


import pygame
import sys

pygame.init()

screen = pygame.display.set_mode((800, 600))
pygame.display.set_caption("Окно с фоном")

BG_COLOR = (30, 144, 255)  # Dodger Blue

while True:
    for event in pygame.event.get():
        if event.type == pygame.QUIT:
            pygame.quit()
            sys.exit()

    screen.fill(BG_COLOR)
    pygame.display.flip()