From 866367171f81ef26d50bed69a749d3f90a1304e9 Mon Sep 17 00:00:00 2001 From: pin Date: Thu, 8 Apr 2010 12:39:06 +0000 Subject: [PATCH 1/1] =?utf8?q?Ce=20n'est=20pas=20une=20bonne=20id=C3=A9e?= =?utf8?q?=20d'utiliser=20des=20=C3=A9v=C3=A9nements=20dont=20le=20code=20?= =?utf8?q?est=20>=20NUMEVENTS.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit git-svn-id: https://svn.cri.ensmp.fr/svn/minwii/trunk@128 fe552daf-6dbe-4428-90eb-1537e0879342 --- src/pgu/gui/const.py | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) 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 -- 2.20.1