Skip to content
Snippets Groups Projects

pygame.coursor test

  • Clone with SSH
  • Clone with HTTPS
  • Embed
  • Share
    The snippet can be accessed without any authentication.
    Authored by Jakob Kirsch
    python 292 B
    import pygame
    pygame.init()
    screen = pygame.display.set_mode((640, 480))
    l = pygame.cursors.load_xbm("test.xbm", "test.xbm")
    uhr = pygame.time.Clock()
    while True:
        pygame.mouse.set_cursor(l[0], l[1], l[2], l[3])
        screen.fill((255, 255, 255))
        pygame.display.update()
        uhr.tick(1)
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment