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/Screen.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 pycameltris/screens/Screen.py (limited to 'pycameltris/screens/Screen.py') diff --git a/pycameltris/screens/Screen.py b/pycameltris/screens/Screen.py new file mode 100644 index 0000000..01f80ab --- /dev/null +++ b/pycameltris/screens/Screen.py @@ -0,0 +1,12 @@ +import abc + + +class Screen(abc.ABC): + @abc.abstractmethod + def refresh(self): + pass + + @abc.abstractmethod + def oneframe(self): + pass + -- cgit v1.2.3