General PanelDesign Interface.

This commit is contained in:
Maximilian Giller 2019-02-27 17:20:15 +01:00
parent 856e7b5b94
commit 3981bf8a80

17
Calendar/PanelDesign.py Normal file
View 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")