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
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 pyqt_current_exception_message_box-0.1.0a0.tar.gz.
File metadata
- Download URL: pyqt_current_exception_message_box-0.1.0a0.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d4a913ba295677e8bc62571f31e814fd158122ab3f29c00816810e5b3e232afe
|
|
| MD5 |
d55f89d8c8e6a7d2cd068c0a2f4179cb
|
|
| BLAKE2b-256 |
c68cbb5d6615a1466502a2f1151feb1aacf0df7dbc141bf65b7be697834eb985
|
File details
Details for the file pyqt_current_exception_message_box-0.1.0a0-py3-none-any.whl.
File metadata
- Download URL: pyqt_current_exception_message_box-0.1.0a0-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
87de04770cb45af12f6e39bfebd898c69e5d92173e1ad200d24084d84ab4f27c
|
|
| MD5 |
2587131d89e5f034a8f9e1c842d0225d
|
|
| BLAKE2b-256 |
e8fa48ec631099b3f4736b3f00aa26cf9879c791c4076eefd853677f37d5b395
|