summaryrefslogtreecommitdiff
path: root/pycameltris/screens/Screen.py
diff options
context:
space:
mode:
authorOlivier Gayot <olivier.gayot@sigexec.com>2021-11-08 17:53:17 +0100
committerOlivier Gayot <olivier.gayot@sigexec.com>2021-11-08 22:05:55 +0100
commit1fe19d3e589bbc5d40b74d007d6b1984cfc34925 (patch)
tree11e63c628f5b8adc4f5711f02e98d555c572fe48 /pycameltris/screens/Screen.py
parentc51fd84bc896c74f291b4c5f2c73b5e5852de3e5 (diff)
Make controller classes and screen classes inherit from abstract classes
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
Diffstat (limited to 'pycameltris/screens/Screen.py')
-rw-r--r--pycameltris/screens/Screen.py12
1 files changed, 12 insertions, 0 deletions
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
+