Skip to main content

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


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)

Uploaded Source

Built Distribution

zroya-0.1.2-py2.py3-none-any.whl (6.9 kB view details)

Uploaded Python 2 Python 3

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

Hashes for zroya-0.1.2.tar.gz
Algorithm Hash digest
SHA256 8d06889c9ea68f15ed1e157a86e761e74152961a429d1fa7a95e5df75d962694
MD5 3bf2fb35db665972b6f9071d044a08d3
BLAKE2b-256 91333c989cdd116ee801ab43246bb055a70c3577f43dedbfdf6af38926aa4837

See more details on using hashes here.

File details

Details for the file zroya-0.1.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for zroya-0.1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7f92232bf031d0da2001ee8ff3a8d678b08b381d65b8996cfd69e586a421e843
MD5 abb804b7e2044450fa5951a915e03595
BLAKE2b-256 9cc194e824e46af4b9a96692580da0f8a009e969bcc9d1f43cd097144a44cb2f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page