Python 3 Plyer Library Desktop Notification Notifier Full Example For Beginners

Python 3 Plyer Library Desktop Notification Notifier Full Example For Beginners

 

Welcome folks today in this post we will be looking on how to build a desktop notification using plyer module in python. All the full source code of the application is shown below.

 

 

Get Started

 

 

In order to get started you need to install the following library using the pip command as shown below

See also  Python 3 Script to Convert Video to Gif Format Using MoviePy Library Full Tutorial For Beginners

 

pip install plyer

 

After installing this library make an app.py file and copy paste the following code

 

app.py

 

 

import time 
from plyer import notification 


if __name__=="__main__": 

        notification.notify( 
            title = "HEADING HERE", 
            message=" DESCRIPTION HERE" , 
            
            # displaying time 
            timeout=2
) 
        # waiting time 
        time.sleep(7)

 

See also  Python 3 Script to Check Whether a Number is Odd or Even Full Tutorial For Beginners

 

And here in the above script just replace the heading of the notification and description and you can also change the delay of notification in seconds

 

After doing this now simply run this script by typing the below command

See also  Python 3 Datetime Library Script to Get the Current Date Time in Days,Months,Years,Hours,Minutes and Seconds Full Project For Beginners

 

python app.py

 

Leave a Reply