calendar.py

calendar.py is new for this project. It allows you to store your alarms, snooze interval and holidays that you want to track. You can either edit the ones that are present in this file or add even more and edit the code.py and openweather_graphics.py files as needed to make sure all of your alarms sound properly.

alarms = {
    'bed' : '10:00 PM',
    'breakfast' : '8:00 AM',
    'lunch' : '12:00 PM',
    'dinner' : '6:30 PM',
    'trash' : ('Fri.', '1:00 PM')
    }

timers = {
    'snooze_time' : 300
    }

holidays = {
    'new years' : ('Jan. 1', 'Happy New Year!'),
    'valentines' : ('Feb. 14', "Happy Valentine's Day! <3"),
    'halloween' : ('Oct. 31', 'Happy Halloween!'),
    'xmas' : ('Dec. 25', 'Merry Christmas!')
    }

This guide was first published on Jan 29, 2020. It was last updated on Jan 29, 2020.

This page (Code Walkthrough - calendar.py) was last updated on Aug 24, 2021.

Text editor powered by tinymce.