From 65f36f6039e1aea8de8551b47bfef2f57c312ce1 Mon Sep 17 00:00:00 2001 From: Max G Date: Sat, 9 Mar 2019 15:23:09 +0100 Subject: [PATCH] Transmitting additional information to day rows --- Calendar/DayListPanel.py | 9 ++++++--- Calendar/WeatherColumnDesign.py | 9 +++++++++ 2 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 Calendar/WeatherColumnDesign.py diff --git a/Calendar/DayListPanel.py b/Calendar/DayListPanel.py index 5edfb43..71eb741 100644 --- a/Calendar/DayListPanel.py +++ b/Calendar/DayListPanel.py @@ -34,13 +34,16 @@ class DayListPanel (PanelDesign): self.__draw_day_rows__() def add_weather (self, weather): - pass + for row in self.__day_rows__: + row.add_weather(weather) def add_calendar (self, calendar): - pass + for row in self.__day_rows__: + row.add_calendar(calendar) def add_rssfeed (self, rss): - pass + for row in self.__day_rows__: + row.add_rssfeed(rss) def __draw_day_rows__ (self): following_days = self.__get_following_days__() diff --git a/Calendar/WeatherColumnDesign.py b/Calendar/WeatherColumnDesign.py new file mode 100644 index 0000000..f64eaa6 --- /dev/null +++ b/Calendar/WeatherColumnDesign.py @@ -0,0 +1,9 @@ +from DesignEntity import DesignEntity + +class WeatherColumnDesign(DesignEntity): + """Displays weather information in a column""" + def __init__(self, size): + super().__init__(size) + + def __finish_image__(self): + pass \ No newline at end of file