summaryrefslogtreecommitdiff
path: root/cameltris/screens/pause.py
diff options
context:
space:
mode:
Diffstat (limited to 'cameltris/screens/pause.py')
-rw-r--r--cameltris/screens/pause.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cameltris/screens/pause.py b/cameltris/screens/pause.py
index 72ff51a..c8e6c69 100644
--- a/cameltris/screens/pause.py
+++ b/cameltris/screens/pause.py
@@ -18,10 +18,10 @@ class Pause(Screen):
def __init__(self, screen: pygame.surface.Surface):
self.event_handler: dict[int, Callable[[pygame.event.Event], None]] = {}
- def exit(_) -> NoReturn:
+ def exit_(_) -> NoReturn:
sys.exit()
- self.event_handler[pygame.QUIT] = exit
+ self.event_handler[pygame.QUIT] = exit_
self.event_handler[pygame.JOYBUTTONDOWN] = lambda evt: handle_input_pressed(JoystickController(evt.joy), evt)
self.event_handler[pygame.KEYDOWN] = lambda evt: handle_input_pressed(KeyboardController(pygame.key), evt)