codice:
import sys
import pygame
from pygame.locals import *

pygame.init()

screen = pygame.display.set_mode([600, 300])

cur = pygame.image.load("cursor.extension")
curbox = cur.get_rect()

while(1):
   for event in pygame.events.get():
      if event.type == MOUSEMOVE:
         curbox.x, curbox.y = pygame.mouse.get_pos()
         
      elif event.type == QUIT:
         pygame.quit()
         sys.exit(0)
         
      
   screen.fill((0, 0, 0))
   screen.blit(cur, curbox)
   screen.flip()