Python implementation of Windows notifications.
Project description
Zroya is python wrapper around win32 API for creating Windows notification.
Prerequisites
Zroya requires you to install pypiwin32:
pip install pypiwin32
Installation
Zroya is available from pypi:
pip install zroya
Example
This usage example creates one notification. Application end when user clicks on it:
# Import NotificationCenter from zroya import TrayIcon quit = False # This function is called when user clicks on notification def click_callback(data): global quit print("User clicked on your notification!") quit = True # Create instance of NotificationCenter nc = TrayIcon() # Create new notification nc.create("Test Notification", "Longer notification description. \n With multiline support!", on_click = click_callback) # Update function should be called in your event loop. In this example, we will create our own event loop: while nc.update(): if quit: nc.quit()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
zroya-0.1.3.tar.gz
(5.8 kB
view hashes)
Built Distribution
Close
Hashes for zroya-0.1.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9194d11425cb9ce080ad9f06b3849e9409e9f69125424e16353cc33432428857 |
|
MD5 | 8111a8e14e9cd58a1a7707c8a32fb91b |
|
BLAKE2b-256 | 3032dbb810fc422d5321738b3b69cf4c4b07ba5ca622d99b4701b1a3ea8d55ab |