()
| 140 | |
| 141 | |
| 142 | def checkForQuit(): |
| 143 | for event in pygame.event.get(QUIT): # get all the QUIT events |
| 144 | terminate() # terminate if any QUIT events are present |
| 145 | for event in pygame.event.get(KEYUP): # get all the KEYUP events |
| 146 | if event.key == K_ESCAPE: |
| 147 | terminate() # terminate if the KEYUP event was for the Esc key |
| 148 | pygame.event.post(event) # put the other KEYUP event objects back |
| 149 | |
| 150 | |
| 151 | def flashButtonAnimation(color, animationSpeed=50): |
no test coverage detected