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 NotificationCenter 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 = NotificationCenter() # 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.1a0.tar.gz
(5.7 kB
view details)
Built Distribution
File details
Details for the file zroya-0.1.1a0.tar.gz
.
File metadata
- Download URL: zroya-0.1.1a0.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51ea8ca6d46767cf3961c58e6dda14b43423961551fdcb53c343c87ae9a6cdc3 |
|
MD5 | ced9ce3b4bf81520481ebdf01a46ad55 |
|
BLAKE2b-256 | d28cfa5d11cfcfc28126e9c95feedf8cb1f71181c44712baeffab3de381c06c8 |
File details
Details for the file zroya-0.1.1a0-py2.py3-none-any.whl
.
File metadata
- Download URL: zroya-0.1.1a0-py2.py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9e79f961ee9c59477a6ab33954bb43e30bbe45e276bcb7d9b17444f59fc2283 |
|
MD5 | c9ef54c8aa48be6ec5a8f5c6e02db782 |
|
BLAKE2b-256 | ee0ad0df17ec6ea1e0e7dc014ae14f794befa31fd94680c6be0a04afbaade04e |