This article demonstrates how to create a simple Desktop Notifier application using Python. A desktop notifier is a simple application which produces a notification message in form of a pop-up message on desktop. We will be using plyer module for the same.
Module Needed
- time: This module works with the time object and is installed by default
- Plyer: Plyer module is used to access the features of the hardware. This module does not comes built-in with Python. We need to install it externally. To install this module type the below command in the terminal.
pip install plyer
Approach:
Step 1) Import the notification class from the plyer module
from plyer import notification
Step 2) After that you just need to call the notify method of this class.
Syntax: notify(title=”, message=”, app_name=”, app_icon=”, timeout=10, ticker=”, toast=False)
Parameters:
- title (str) – Title of the notification
- message (str) – Message of the notification
- app_name (str) – Name of the app launching this notification
- app_icon (str) – Icon to be displayed along with the message
- timeout (int) – time to display the message for, defaults to 10
- ticker (str) – text to display on status bar as the notification arrives
- toast (bool) – simple Android message instead of full notification
Step 3) Add the sleep function to show that notification again.
Below is the implemenation.
Python3
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) |
Output:

Recommended Posts:
- Desktop Notifier in Python
- Python Desktop News Notifier in 20 lines
- Create Battery Notifier for Laptop using Python
- Get Live Weather Desktop Notifications Using Python
- Python | Writing to an excel file using openpyxl module
- Count frequencies of all elements in array in Python using collections module
- Prefix matching in Python using pytrie module
- Stack and Queue in Python using queue Module
- Python | Reading an excel file using openpyxl module
- Testing in Python using doctest module
- Python | ASCII art using pyfiglet module
- Python | Adjusting rows and columns of an excel file using openpyxl module
- Python | Plotting charts in excel sheet using openpyxl module | Set - 1
- Python | Convert Image to Pdf using img2pdf module
- Python | Plotting charts in excel sheet using openpyxl module | Set – 2
- Python | Plotting charts in excel sheet using openpyxl module | Set 3
- Python | Create and write on excel file using xlsxwriter module
- Python | Plotting Area charts in excel sheet using XlsxWriter module
- Python | Plotting bar charts in excel sheet using XlsxWriter module
- Python | Plotting Radar charts in excel sheet using XlsxWriter module
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.

