-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathcursors.py
More file actions
executable file
·68 lines (55 loc) · 1.28 KB
/
Copy pathcursors.py
File metadata and controls
executable file
·68 lines (55 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
import pygame
# pygame must be inited already
def compile( hotspot, array ):
size = len( array[0] ), len( array )
return (size,hotspot) + pygame.cursors.compile( array, black='.', white='X' )
finger = compile( (5,1), (
' XX ',
' X..X ',
' X..X ',
' X..X ',
' X..XXX ',
' X..X..XX ',
' X..X..X.X ',
' X..X..X..X ',
'XXX X..X..X..X ',
'X..XX........X ',
'X...X........X ',
' X...........X ',
' X..........X ',
' X..........X ',
' X........X ',
' X.......X ',
' X......X ',
' X.....X ',
' XXXXXXX ',
' ',
' ',
' ',
' ',
' ') )
arrow = compile( (0,0), (
'X ',
'XX ',
'X.X ',
'X..X ',
'X...X ',
'X....X ',
'X.....X ',
'X......X ',
'X.......X ',
'X........X ',
'X.........X ',
'X......XXXXX ',
'X...X..X ',
'X..XX..X ',
'X.X X..X ',
'XX X..X ',
'X X..X ',
' X..X ',
' X..X ',
' X..X ',
' XX ',
' ',
' ',
' ',) )