Ce n'est pas une bonne idée d'utiliser des événements de code > NUMEVENTS.
[minwii.git] / src / pgu / gui / const.py
1 """Constants.
2 <br><br>
3 <strong>Event Types</strong>
4
5 <p>from pygame</p>
6 <dl>
7 <dt>QUIT
8 <dt>MOUSEBUTTONDOWN
9 <dt>MOUSEBUTTONUP
10 <dt>MOUSEMOTION
11 <dt>KEYDOWN
12 </dl>
13
14 <p>gui specific</p>
15 <dl>
16 <dt>ENTER
17 <dt>EXIT
18 <dt>BLUR
19 <dt>FOCUS
20 <dt>CLICK
21 <dt>CHANGE
22 <dt>OPEN
23 <dt>CLOSE
24 <dt>INIT
25 </dl>
26
27 <strong>Other</strong>
28 <dl>
29 <dt>NOATTR
30 </dl>
31 """
32 import pygame
33
34 from pygame.locals import QUIT, MOUSEBUTTONDOWN, MOUSEBUTTONUP, MOUSEMOTION, KEYDOWN, USEREVENT
35 base = pygame.USEREVENT
36 print 'pgu base:', base
37 ENTER = base + 0
38 EXIT = base + 1
39 BLUR = base + 2
40 FOCUS = base + 3
41 CLICK = base + 4
42 CHANGE = base + 5
43 OPEN = base + 6
44 CLOSE = base + 7
45 INIT = 'init'
46
47 pygame.USEREVENT = CLOSE
48 if pygame.USEREVENT > pygame.NUMEVENTS :
49 pygame.NUMEVENTS = pygame.USEREVENT
50
51 class NOATTR: pass