2019-02-28 15:17:43 +01:00
|
|
|
from DesignEntity import DesignEntity
|
2019-04-08 11:20:33 +02:00
|
|
|
from TechnicalDataDesign import TechnicalDataDesign
|
|
|
|
from settings import print_technical_data
|
|
|
|
from datetime import datetime
|
2019-02-27 17:20:15 +01:00
|
|
|
|
2019-07-13 08:05:35 +02:00
|
|
|
|
2019-02-28 15:17:43 +01:00
|
|
|
class PanelDesign (DesignEntity):
|
|
|
|
"""Defined general interface for panel designs."""
|
2019-07-13 08:05:35 +02:00
|
|
|
|
|
|
|
def __init__(self, size):
|
2019-02-28 15:17:43 +01:00
|
|
|
super(PanelDesign, self).__init__(size)
|
2019-04-08 11:20:33 +02:00
|
|
|
self.start_timestamp = datetime.now()
|
2019-02-27 17:20:15 +01:00
|
|
|
|
2019-07-13 08:05:35 +02:00
|
|
|
def add_weather(self, weather):
|
2020-04-19 22:25:50 +02:00
|
|
|
pass
|
2019-02-27 17:20:15 +01:00
|
|
|
|
2019-07-13 08:05:35 +02:00
|
|
|
def add_calendar(self, calendar):
|
2020-04-19 22:25:50 +02:00
|
|
|
pass
|
2019-02-27 17:20:15 +01:00
|
|
|
|
2019-07-13 08:05:35 +02:00
|
|
|
def add_rssfeed(self, rss):
|
2020-04-19 22:25:50 +02:00
|
|
|
pass
|
2019-03-03 16:39:47 +01:00
|
|
|
|
2019-07-13 08:05:35 +02:00
|
|
|
def add_tasks(self, tasks):
|
2020-04-19 22:25:50 +02:00
|
|
|
pass
|
2019-05-19 22:25:59 +02:00
|
|
|
|
2019-07-13 08:05:35 +02:00
|
|
|
def add_crypto(self, crypto):
|
2020-04-19 22:25:50 +02:00
|
|
|
pass
|
2019-04-08 11:20:33 +02:00
|
|
|
|
|
|
|
def __finish_panel__(self):
|
|
|
|
pass
|
|
|
|
|
|
|
|
def __finish_image__(self):
|
|
|
|
self.__finish_panel__()
|
|
|
|
|
|
|
|
if print_technical_data:
|
2019-07-13 08:05:35 +02:00
|
|
|
td = TechnicalDataDesign(
|
|
|
|
self.size, self.start_timestamp, datetime.now())
|
2019-04-08 11:20:33 +02:00
|
|
|
td.mask = True
|
2019-07-13 08:05:35 +02:00
|
|
|
self.draw_design(td)
|