Ad Code

Make Reminder Notification Using Python | Python Practice.


 Reminder Notification Using Python

Welcome to CodingFizz,


In this tutorial, We are going to make a reminder notification using python language. This tutorial is for practice in the python language. 

You can make a reminder notification in just some simple code lines in python.

Python is a popular programming language, it is easy to use and learn for beginners.

 

You need to install a library in python.

>> pip install plyer 

Plyer is an open-source library to access some features of various platform like: Windows, Linux, Mac, etc via python programing language.

 

Source Code:

 import time
 from plyer import notification

 if __name__ == '__main__':
    while True:
        notification.notify(
            title=" Reminder ",
            message="Hello Ashish",
            app_icon="D:\Programming\Python\icon.ico",
            timeout=10
        )

It codes only for tests, the notification stays only 10-sec continuously.


If you want to set a time for reminder so go through this code.
 import time
 from plyer import notification

 if __name__ == '__main__':
    while True:
        notification.notify(
            title=" Reminder ",
            message="Hello Ashish",
            app_icon="D:\Programming\Python\icon.ico",
            timeout=10
        )
           time.sleep(60*60)



This notification reminds you after an hour.


Your Notification is like this:


If you want to stop this reminder notification, Then go task manager and kill this notification.

Post a Comment

0 Comments

Ad Code