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(nid, 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.2.tar.gz
(5.8 kB
view hashes)
Built Distribution
Close
Hashes for zroya-0.1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f92232bf031d0da2001ee8ff3a8d678b08b381d65b8996cfd69e586a421e843 |
|
MD5 | abb804b7e2044450fa5951a915e03595 |
|
BLAKE2b-256 | 9cc194e824e46af4b9a96692580da0f8a009e969bcc9d1f43cd097144a44cb2f |