X-Git-Url: https://scm.cri.ensmp.fr/git/minwii.git/blobdiff_plain/4986d1d41239a54cd13b490ad72c3dc99793c8e8..dc8216d3cd94fe2a5d89c6e8a4fae5de2f25bc9b:/src/pgu/gui/const.py?ds=sidebyside diff --git a/src/pgu/gui/const.py b/src/pgu/gui/const.py index d11a02d..c865cd8 100644 --- a/src/pgu/gui/const.py +++ b/src/pgu/gui/const.py @@ -32,20 +32,14 @@ import pygame from pygame.locals import QUIT, MOUSEBUTTONDOWN, MOUSEBUTTONUP, MOUSEMOTION, KEYDOWN, USEREVENT -base = pygame.USEREVENT -print 'pgu base:', base -ENTER = base + 0 -EXIT = base + 1 -BLUR = base + 2 -FOCUS = base + 3 -CLICK = base + 4 -CHANGE = base + 5 -OPEN = base + 6 -CLOSE = base + 7 -INIT = 'init' - -pygame.USEREVENT = CLOSE -if pygame.USEREVENT > pygame.NUMEVENTS : - pygame.NUMEVENTS = pygame.USEREVENT +ENTER = pygame.locals.USEREVENT + 0 +EXIT = pygame.locals.USEREVENT + 1 +BLUR = pygame.locals.USEREVENT + 2 +FOCUS = pygame.locals.USEREVENT + 3 +CLICK = pygame.locals.USEREVENT + 4 +CHANGE = pygame.locals.USEREVENT + 5 +OPEN = pygame.locals.USEREVENT + 6 +CLOSE = pygame.locals.USEREVENT + 7 +INIT = 'init' class NOATTR: pass \ No newline at end of file