Zroya是围绕win32 API的一个python封装用于创建Windows通知
Zroya是围绕win32 API的一个python封装用于创建Windows通知
Python 其它杂项
共153Star
详细介绍
zroya2
Zroya is a Python package for creating native Windows notifications.
In contrast to first version of zroya, zroya2 is a Python extension built around C++ WinToast library.
Note: Zroya2 is in beta testing. I would be grateful for any bug reports.
Prerequisites
There are no requirements at the moment.
Installation
Zroya2 is now available from pypi:
python -m pip install zroya
Example
import zroya
# Initialize zroya module. Make sure to call this function.
# All parameters are required
zroya.init("YourAppName", "CompanyName", "ProductName", "SubProduct", "Version")
# Create notification template. TYPE_TEXT1 means one bold line withou image.
template = zroya.Template( zroya.TemplateType.Text1 )
# Set first line
template.setFirstLine("My First line")
# Save notification id for later use
notificationID = zroya.show(template)
# .. do something, maybe sleep?
# Hide notification
zroya.hide(notificationID)
Documentation
You may find some limited documentation on Zroya Page
-
228 Star
-
674 Star
-
22 Star
-
13433 Star
-
2038 Star
-
112 Star