E-Paper-Calendar/Calendar/AgendaListPanel.py

23 lines
615 B
Python
Raw Normal View History

2019-03-24 21:30:44 +01:00
from PanelDesign import PanelDesign
2019-03-24 22:14:58 +01:00
from AgendaListDesign import AgendaListDesign
agenda_ypadding = 5
2019-03-24 21:30:44 +01:00
class AgendaListPanel (PanelDesign):
2019-03-24 22:14:58 +01:00
'''Lists upcoming events in chronological order and groups them by days'''
def __init__(self, size):
super(AgendaListPanel, self).__init__(size)
def add_weather (self, weather):
pass
def add_calendar (self, calendar):
agenda = AgendaListDesign(self.size, calendar)
agenda.pos = (0, agenda_ypadding)
self.draw_design(agenda)
def add_rssfeed (self, rss):
pass
def add_taks (self, tasks):
pass