PyQt Custom Notification Library
A highly customizable PyQt6 notification system, inspired by Telegram's desktop notifications.
Features
- Customizable Appearance: Easily change the background color of notifications.
- Customizable Buttons: Change the text and action of the 'Reply' button.
- Customizable Hide All: Change the text and color of the 'Hide all' button.
- Sound Support: Plays a custom sound (
msr.mp3) upon notification display usingmpg123(must be installed separately). - Queuing System: Manages multiple notifications gracefully.
- Animation: Smooth fade-in and fade-out animations.
Installation
Since this is a custom library, you would typically install it from a local source or a private repository.
Dependencies
You must have PyQt6 installed. For sound support, you need the mpg123 player installed on your system.
# Install PyQt6
pip install PyQt6
# Install mpg123 (Linux example)
sudo apt-get install mpg123
Usage
import sys
from PyQt6.QtWidgets import QApplication
from pyqt_custom_notify import get_manager
def main():
app = QApplication(sys.argv)
manager = get_manager()
# 1. Set global customizations
manager.set_customization(
default_bg_color="#1E1E1E", # Darker background
default_reply_text="Action", # Change 'Reply' text
hide_all_text="Close All", # Change 'Hide all' text
hide_all_color="#FF5733" # Change 'Hide all' text color to orange
)
# 2. Connect to the reply signal
def handle_reply(title: str, message: str):
print(f"Custom Action triggered for: {title} Message: {message}")
manager.notificationReplied.connect(handle_reply)
# 3. Send a custom notification
manager.sendNotification(
user_pic_path="userpic1.png", # Image from the resources folder
title="Custom Title",
message="This is a fully customized notification!",
bg_color="#333333", # Override default background for this specific notification
reply_text="Click Me" # Override default reply text for this specific notification
)
# 4. Send a default notification
manager.sendNotification(
user_pic_path="userpic2.png",
title="Default Notification",
message="This uses the global default settings."
)
sys.exit(app.exec())
if __name__ == "__main__":
main()
Metadata
Release files for biontfy 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| biontfy-2.0.0.tar.gz | 410.6 kB | Without provenance | Details for biontfy-2.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| biontfy-2.0.0-py3-none-any.whl | Python 3 | none | any | Details for biontfy-2.0.0-py3-none-any.whl |
Total release size: 819.6 kB
Release files / biontfy-2.0.0.tar.gz
| Download URL | biontfy-2.0.0.tar.gz |
|---|---|
| Size | 410.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c1570672c8f6e1d9a369e5aa8b08588cbb07ebdc7f7d364c0fbd2b7a8e33c0dd
|
|
BLAKE2b-256 checksum How to use checksums |
31b5168301fcea1b51b9993e02d04229517b7005908dec46f7119d84561b4864
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.9
|
Release files / biontfy-2.0.0-py3-none-any.whl
| Download URL | biontfy-2.0.0-py3-none-any.whl |
|---|---|
| Size | 408.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8d9ba3cc8800f26a647f8ea789ac9f05e1d4da4b52e0f6749a8c7e1826813d15
|
|
BLAKE2b-256 checksum How to use checksums |
2549923e74ce128d6c30585c55e1d6569d6415e3531109b744b263d152a10eb4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.9
|
Security for biontfy 2.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.