Skip to main content

A simple utility to display the current exception in a PyQt message box.

Project description

pyqt-current-exception-message-box

A simple utility to display the current exception in a PyQt message box.

Features

  • Shows error dialog (QMessageBox) with the exception message and traceback
  • Easy to call from your own PyQt applications
  • Cross-binding: Supports PyQt6, PyQt5, PyQt4, PySide6, PySide2, or PySide

Installation

pip install pyqt-current-exception-message-box

Usage

Simple Usage

import sys
from pyqt_current_exception_message_box import pyqt_current_exception_message_box
# from PySide6.QtWidgets import QApplication
# from PyQt5.QtWidgets import QApplication
# from PySide2.QtWidgets import QApplication
# from PyQt4.QtGui import QApplication
# from PySide.QtGui import QApplication
from PyQt6.QtWidgets import QApplication

app = QApplication(sys.argv)

try:
    # Code that may raise
    raise RuntimeError('Something went wrong!')
except RuntimeError:
    pyqt_current_exception_message_box(parent=None)

Contributing

Contributions are welcome! Please submit pull requests or open issues on the GitHub repository.

License

This project is licensed under the MIT License.

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

pyqt_current_exception_message_box-0.1.0a0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file pyqt_current_exception_message_box-0.1.0a0.tar.gz.

File metadata

File hashes

Hashes for pyqt_current_exception_message_box-0.1.0a0.tar.gz
Algorithm Hash digest
SHA256 d4a913ba295677e8bc62571f31e814fd158122ab3f29c00816810e5b3e232afe
MD5 d55f89d8c8e6a7d2cd068c0a2f4179cb
BLAKE2b-256 c68cbb5d6615a1466502a2f1151feb1aacf0df7dbc141bf65b7be697834eb985

See more details on using hashes here.

File details

Details for the file pyqt_current_exception_message_box-0.1.0a0-py3-none-any.whl.

File metadata

File hashes

Hashes for pyqt_current_exception_message_box-0.1.0a0-py3-none-any.whl
Algorithm Hash digest
SHA256 87de04770cb45af12f6e39bfebd898c69e5d92173e1ad200d24084d84ab4f27c
MD5 2587131d89e5f034a8f9e1c842d0225d
BLAKE2b-256 e8fa48ec631099b3f4736b3f00aa26cf9879c791c4076eefd853677f37d5b395

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