Skip to main content

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

  1. Import the Library: Start by importing the mbox class from the notix module.
  2. Create an Instance: Create an instance of the mbox class. This will be used to show messages.
  3. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

notix-0.0.1.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

notix-0.0.1-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

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

Hashes for notix-0.0.1.tar.gz
Algorithm Hash digest
SHA256 fcf8217b3cd404edc82c6cd8b69a6d8942c26852f0d1f69b56917381bb47876f
MD5 ff57e3858bf84851b43a8c1418e4d3bd
BLAKE2b-256 25049b42611ebccb1c93d057146ea40bede817b274ded7a44d4a42f864b8ac81

See more details on using hashes here.

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

Hashes for notix-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b5b0eb0a48a609b8b502207589779e56b6468596be67e336f44dba96b0172fa2
MD5 52f83f21084706b8da13c016143219c8
BLAKE2b-256 03bc311b6499c36c344be38afff2d99d89b495bfb012516f16020e72bb0de6a9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page