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 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


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.1b0.tar.gz (6.1 kB view hashes)

Uploaded Source

Built Distribution

zroya-0.1.1b0-py2.py3-none-any.whl (7.2 kB view hashes)

Uploaded Python 2 Python 3

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