import pygame
pygame.init()
screen = pygame.display.set_mode((800, 600))
pygame.display.set_caption("pygameIT"
icon = pygame.image.load('pint/finder.png'
pygame.display.set_icon(icon)
myfont = pygame.font.Font('speak/Caveat-Regular.ttf', size=40)
text_surface = myfont.render("Ты будешь моей валентинкой?", True, (255, 255, 255))
running = True
while running:
screen.fill((209, 139, 255))
screen.blit(text_surface, (300, 250))
pygame.display.update()
for event in pygame.event.get():
if event.type == pygame.QUIT:
running = False
pygame.quit()