Reminder

 Simple program that takes in a certain amount of hours, minutes and seconds, then a description of the notification to ping the user with after that amount of time has passed. Makes use of the modules time and the previous module used, win10toast.

import time
from win10toast import ToastNotifier
print("This program will send a windows notification after a given amount of time.")
hours = int(input("Enter hours: "))
minutes = int(input("Enter minutes: "))
seconds = int(input("Enter seconds: "))
description = input("Enter your description of the reminder: ")
toast = ToastNotifier()
total_time = seconds + minutes * 60 + hours * 3600
time.sleep(total_time)
toast.show_toast("Reminder", description, icon_path=r"C:\Users\Conan\Desktop\rand\36466-200.ico")

Comments