Transmitting additional information to day rows
This commit is contained in:
parent
e327d359a5
commit
65f36f6039
2 changed files with 15 additions and 3 deletions
|
@ -34,13 +34,16 @@ class DayListPanel (PanelDesign):
|
||||||
self.__draw_day_rows__()
|
self.__draw_day_rows__()
|
||||||
|
|
||||||
def add_weather (self, weather):
|
def add_weather (self, weather):
|
||||||
pass
|
for row in self.__day_rows__:
|
||||||
|
row.add_weather(weather)
|
||||||
|
|
||||||
def add_calendar (self, calendar):
|
def add_calendar (self, calendar):
|
||||||
pass
|
for row in self.__day_rows__:
|
||||||
|
row.add_calendar(calendar)
|
||||||
|
|
||||||
def add_rssfeed (self, rss):
|
def add_rssfeed (self, rss):
|
||||||
pass
|
for row in self.__day_rows__:
|
||||||
|
row.add_rssfeed(rss)
|
||||||
|
|
||||||
def __draw_day_rows__ (self):
|
def __draw_day_rows__ (self):
|
||||||
following_days = self.__get_following_days__()
|
following_days = self.__get_following_days__()
|
||||||
|
|
9
Calendar/WeatherColumnDesign.py
Normal file
9
Calendar/WeatherColumnDesign.py
Normal file
|
@ -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
|
Loading…
Reference in a new issue