Bounded width and height of DisplayAdapter to constructor.
This commit is contained in:
parent
31ee4359ee
commit
679fed425d
1 changed files with 9 additions and 6 deletions
|
@ -1,8 +1,11 @@
|
||||||
class DisplayAdapter (object):
|
class DisplayAdapter (object):
|
||||||
"""Interface for CalendarDesign output channels.
|
"""Interface for CalendarDesign output channels."""
|
||||||
Needs implementation of width and height properties."""
|
def __init__(self, width, height):
|
||||||
def render (self, design):
|
self.width = width
|
||||||
raise NotImplementedError("Functions needs to be implemented")
|
self.height = height
|
||||||
|
|
||||||
def calibrate (self):
|
def render (self, design):
|
||||||
raise NotImplementedError("Functions needs to be implemented")
|
raise NotImplementedError("Functions needs to be implemented")
|
||||||
|
|
||||||
|
def calibrate (self):
|
||||||
|
raise NotImplementedError("Functions needs to be implemented")
|
Loading…
Reference in a new issue