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(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.3.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

Details for the file zroya-0.1.3.tar.gz.

File metadata

  • Download URL: zroya-0.1.3.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for zroya-0.1.3.tar.gz
Algorithm Hash digest
SHA256 3b3ab4896f2b5695bb8188244aa0388c74df3d06273eab5be553cc40c8c7d9d2
MD5 0e53b42109343fa7142a832101d67663
BLAKE2b-256 59919c3ca7b5fd4d49811dfbca5d601222b3258c3a8d38ae9ee44c4f06c784c6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zroya-0.1.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9194d11425cb9ce080ad9f06b3849e9409e9f69125424e16353cc33432428857
MD5 8111a8e14e9cd58a1a7707c8a32fb91b
BLAKE2b-256 3032dbb810fc422d5321738b3b69cf4c4b07ba5ca622d99b4701b1a3ea8d55ab

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