E-Paper-Calendar/Calendar/DisplayAdapter.py

13 lines
382 B
Python
Raw Normal View History

2019-02-19 20:51:10 +01:00
class DisplayAdapter (object):
"""Interface for CalendarDesign output channels."""
2019-07-13 08:05:35 +02:00
def __init__(self, width, height):
self.width = width
self.height = height
2019-02-19 20:51:10 +01:00
2019-07-13 08:05:35 +02:00
def render(self, design):
raise NotImplementedError("Functions needs to be implemented")
2019-07-13 08:05:35 +02:00
def calibrate(self):
raise NotImplementedError("Functions needs to be implemented")