Mercurial > skaapsteker
diff skaapsteker/menuscene.py @ 632:0675f390653c
Initial port to Python 3 and Pygame 2.
author | Simon Cross <hodgestar@gmail.com> |
---|---|
date | Fri, 20 Jan 2023 20:01:06 +0100 |
parents | a5a57abd5472 |
children |
line wrap: on
line diff
--- a/skaapsteker/menuscene.py Tue Mar 17 22:40:45 2020 +0200 +++ b/skaapsteker/menuscene.py Fri Jan 20 20:01:06 2023 +0100 @@ -45,7 +45,7 @@ surface.blit(self._cursor, (cursor_x, cursor_y)) def dispatch(self, ev): - if ev.type is KEYDOWN: + if ev.type == KEYDOWN: if ev.key in (K_q, K_ESCAPE): pygame.event.post(pygame.event.Event(QUIT)) elif ev.key == K_DOWN: