Battery Notification In Python

Bhavy Bhatia Mar 13, 2021

By using Python we are creating a Desktop Battery Notification app that will alert about battery percentage

Notifications help us to remember things easily.

To make Desktop Notification App using python we need to install certain packages

1) pip install psutil

2) pip install plyer

After that, we need to import modules.

import psutil

from plyer import notifications

import time

After importing modules we need to specify the parameters (like tittles and message)

we are done with the code, save it and run the python script.

Here is the output of the code.

Battery Notification

 

 

Project Files

Loading...
..
This directory is empty.

Comments (0)

Leave a Comment