Don't reference removed files in Makefile
[python/dscho.git] / Demo / sgi / video / watchcursor.py
blobaae3f85d5090141a5204098cd954835511f1b09a
1 # Define a 16x16 cursor looking like a watch
3 # X11 bitmap file:
4 ##define x_width 16
5 ##define x_height 16
6 #static char x_bits[] = {
7 # 0xf0, 0x0f, 0xf8, 0x1f, 0x1c, 0x38, 0x8e, 0x71, 0x87, 0xe1, 0x83, 0xc1,
8 # 0x83, 0xc1, 0xf3, 0xc1, 0xf3, 0xc1, 0x03, 0xc0, 0x03, 0xc0, 0x07, 0xe0,
9 # 0x0e, 0x70, 0x1c, 0x38, 0xf8, 0x1f, 0xf0, 0x0f};
12 watch = [ \
13 0x0ff0,\
14 0x1ff8,\
15 0x381c,\
16 0x718e,\
17 0xe187,\
18 0xc183,\
19 0xc183,\
20 0xc1f3,\
21 0xc1f3,\
22 0xc003,\
23 0xc003,\
24 0xe007,\
25 0x700e,\
26 0x381c,\
27 0x1ff8,\
28 0x0ff0,\
31 watch.reverse() # Turn it upside-down
33 def defwatch(index):
34 import gl
35 gl.defcursor(index, watch*8)
36 gl.curorigin(index, 8, 8)
38 def test():
39 import gl
40 gl.foreground()
41 gl.winopen('test watchcursor')
42 defwatch(1)
43 gl.setcursor(1, 0, 0)
44 import time
45 time.sleep(10)