From 1fe19d3e589bbc5d40b74d007d6b1984cfc34925 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Mon, 8 Nov 2021 17:53:17 +0100 Subject: Make controller classes and screen classes inherit from abstract classes Signed-off-by: Olivier Gayot --- pycameltris/screens/Pause.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pycameltris/screens/Pause.py') diff --git a/pycameltris/screens/Pause.py b/pycameltris/screens/Pause.py index f9f8859..baca5ca 100644 --- a/pycameltris/screens/Pause.py +++ b/pycameltris/screens/Pause.py @@ -3,6 +3,7 @@ import sys import pygame +from .Screen import Screen from ..controller import KeyboardController, JoystickController, Input from ..misc import UnPause @@ -12,7 +13,7 @@ def handle_input_pressed(controller, event): raise UnPause() -class Pause: +class Pause(Screen): def __init__(self, screen): self.event_handler = dict() -- cgit v1.2.3