Bounded width and height of DisplayAdapter to constructor.

This commit is contained in:
Maximilian Giller 2019-02-20 20:00:08 +01:00
parent 31ee4359ee
commit 679fed425d

View file

@ -1,8 +1,11 @@
class DisplayAdapter (object):
"""Interface for CalendarDesign output channels.
Needs implementation of width and height properties."""
def render (self, design):
raise NotImplementedError("Functions needs to be implemented")
"""Interface for CalendarDesign output channels."""
def __init__(self, width, height):
self.width = width
self.height = height
def calibrate (self):
raise NotImplementedError("Functions needs to be implemented")
def render (self, design):
raise NotImplementedError("Functions needs to be implemented")
def calibrate (self):
raise NotImplementedError("Functions needs to be implemented")