General PanelDesign Interface.
This commit is contained in:
parent
856e7b5b94
commit
3981bf8a80
1 changed files with 17 additions and 0 deletions
17
Calendar/PanelDesign.py
Normal file
17
Calendar/PanelDesign.py
Normal file
|
@ -0,0 +1,17 @@
|
|||
class PanelDesign(object):
|
||||
"""Defined general interface for panel designs."""
|
||||
def set_size(self, width, height):
|
||||
self.width = width
|
||||
self.height = height
|
||||
|
||||
def get_image (self):
|
||||
raise NotImplementedError("Functions needs to be implemented")
|
||||
|
||||
def add_weather (self, weather):
|
||||
raise NotImplementedError("Functions needs to be implemented")
|
||||
|
||||
def add_calendar (self, calendar):
|
||||
raise NotImplementedError("Functions needs to be implemented")
|
||||
|
||||
def add_rssfeed (self, rss):
|
||||
raise NotImplementedError("Functions needs to be implemented")
|
Loading…
Reference in a new issue