Skip to content

hansalemaos/win10ctypestoast

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Windows-10-Toast-Notifications without pywin32 dependency

pip install win10ctypestoast

Tested against Windows 10 / Python 3.10 / Anaconda

but without pywin32 dependency.

from win10ctypestoast import show_toast

show_toast(
    title="Title",
    message="Message",
    icon=r"C:\Users\hansc\Pictures\numberresults.png",
    duration=1,
    repeat=2,
    pause=2,
    threaded=False,
)
show_toast(
    title="Title",
    message="Message",
    icon=r"C:\Users\hansc\Pictures\numberresults.png",
    duration=2,
    repeat=2,
    pause=1,
    threaded=True,
)