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 details)
Built Distribution
File details
Details for the file zroya-0.1.2.tar.gz
.
File metadata
- Download URL: zroya-0.1.2.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d06889c9ea68f15ed1e157a86e761e74152961a429d1fa7a95e5df75d962694 |
|
MD5 | 3bf2fb35db665972b6f9071d044a08d3 |
|
BLAKE2b-256 | 91333c989cdd116ee801ab43246bb055a70c3577f43dedbfdf6af38926aa4837 |
File details
Details for the file zroya-0.1.2-py2.py3-none-any.whl
.
File metadata
- Download URL: zroya-0.1.2-py2.py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f92232bf031d0da2001ee8ff3a8d678b08b381d65b8996cfd69e586a421e843 |
|
MD5 | abb804b7e2044450fa5951a915e03595 |
|
BLAKE2b-256 | 9cc194e824e46af4b9a96692580da0f8a009e969bcc9d1f43cd097144a44cb2f |