import pygame
from pygame import locals as pgl
-from naja.events import InvalidateTheWorld
+from naja.events import InvalidateTheWorld, SelectEvent
class Widget(object):
# True for for this event
self._prepared = False
return False
- if ev.type == pgl.MOUSEBUTTONDOWN:
+ if SelectEvent.matches(ev) or ev.type == pgl.MOUSEBUTTONDOWN:
self.callback('click')
return False