#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Aug 16 22:17:28 2023 @author: astral """ import pygame pygame.init() win = pygame.display.set_mode((500, 500)) pygame.display.set_caption("Test") black = (0, 0, 0) sysfont = pygame.font.SysFont(None, 50) win.fill((255, 255, 255)) running = True while running: win.fill((255, 255, 255)) digit = sysfont.render("Test", 1, black) win.blit(digit, (50, 50)) pygame.display.update() for event in pygame.event.get(): if event.type == pygame.QUIT: running = False pygame.quit()