A simple library for showing notifications.
Project description
Notix
Notix is a simple library for showing notifications on Windows using native message boxes. It provides an easy way to display info, warning, and error messages, as well as to ask yes/no questions.
Features
- Display informational messages
- Display warning messages
- Display error messages
- Ask yes/no questions
Installation
You can install Notix locally using pip:
pip install -e .
This will install Notix in editable mode, which means that changes made to the source code will be reflected immediately without needing to reinstall the package.
Usage
Here is an example of how to use Notix:
from notix import mbox
message_box = mbox()
Show an informational message
message_box.show_info("Hello", "This is an informational message!")
Show a yes/no question
if message_box.show_question("Confirmation", "Do you want to proceed?"): message_box.show_warning("Warning", "You chose to proceed.") else: message_box.show_error("Error", "Operation canceled.")
User Guide
- Import the Library: Start by importing the mbox class from the notix module.
- Create an Instance: Create an instance of the mbox class. This will be used to show messages.
- Show Messages:
- Use show_info(title, message) to display an informational message.
- Use show_warning(title, message) to show a warning message.
- Use show_error(title, message) to display an error message.
- Use show_question(title, question) to ask a yes/no question. This method returns True for "Yes" and False for "No".
Contributing
Contributions are welcome! Please feel free to submit a pull request or open an issue if you find any bugs or have suggestions for improvements.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Author
Sergey Uvarov Your Email: pop1avplov@example.com GitHub: Pop1avok
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file notix-0.0.1.tar.gz.
File metadata
- Download URL: notix-0.0.1.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fcf8217b3cd404edc82c6cd8b69a6d8942c26852f0d1f69b56917381bb47876f
|
|
| MD5 |
ff57e3858bf84851b43a8c1418e4d3bd
|
|
| BLAKE2b-256 |
25049b42611ebccb1c93d057146ea40bede817b274ded7a44d4a42f864b8ac81
|
File details
Details for the file notix-0.0.1-py3-none-any.whl.
File metadata
- Download URL: notix-0.0.1-py3-none-any.whl
- Upload date:
- Size: 2.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b5b0eb0a48a609b8b502207589779e56b6468596be67e336f44dba96b0172fa2
|
|
| MD5 |
52f83f21084706b8da13c016143219c8
|
|
| BLAKE2b-256 |
03bc311b6499c36c344be38afff2d99d89b495bfb012516f16020e72bb0de6a9
|