Example #1
0
 def processKeyUp(self, evt):
     # consume pygame.K_RETURN (acceptButton on Window will not work)
     # can be choosable on construction?
     if evt.key == pygame.K_RETURN:
         return Const.NoEvent
     else:
         return Widget.processKeyUp(self, evt)
Example #2
0
 def processKeyUp(self, evt):
     # consume K_RETURN (acceptButton on Window will not work)
     # can be choosable on construction?
     if evt.key == K_RETURN:
         return NoEvent
     else:
         return Widget.processKeyUp(self, evt)