blob: 10aa057d4fca7d661ed50b4169326fa15c4ee319 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import pygame, sys, os
from pygame.locals import *
pygame.init()
window = pygame.display.set_mode()
pygame.display.set_caption("Test")
surface = pygame.display.get_surface()
clock = pygame.time.Clock()
mouseImage = "arrow.xbm"
mouseMask = "arrow-mask.xbm"
a, b, c, d = pygame.cursors.load_xbm(mouseImage, mouseMask)
pygame.mouse.set_cursor(a, b, c, d)
while(True):
clock.tick(1)
|