Thursday, April 2, 2020

How to display the notification on the desktop by using plyer module

How to display the notification on the desktop by using plyer module

use player module

we display the notification on the screen 
for this purpose, we use pyton build-in module name plyer 
 cmd :pip install plyer

1: we creat a function it take two argument fist titlle of notification and second message of notifcation
2:notification.notify(title=''message=''app_name=''app_icon=''timeout=10ticker=''toast=False)


source:

from plyer import notification
def notify_me(tittle_my,messsage_my):
    notification.notify(
title=tittle_my, 
message=messsage_my,  
app_icon=None
timeout=10)

#now we execute it 
def notify_me('Alert','subscribe my youtube channel ')


No comments:

Post a Comment

Python Happy Birthday Program

import turtle from random import randint , choice width = 700 height = 500 S = turtle . Screen () S . setup ( width , height ) S . bg...