Metadata-Version: 2.0
Name: zroya
Version: 0.1.0
Summary: Python implementation of Windows notifications.
Home-page: https://github.com/malja/zroya
Author: Jan Malčák
Author-email: jan@malcakov.cz
License: MIT
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Topic :: Desktop Environment
Classifier: Operating System :: Microsoft :: Windows
Classifier: Natural Language :: English
Classifier: Intended Audience :: Developers
Classifier: Environment :: Win32 (MS Windows)
Classifier: Development Status :: 3 - Alpha
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Dist: pypiwin32


[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

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

```python

# 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()
```



