Pre-release
This release is a pre-release and may not be stable for production use.
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.
Release files for pyqt-current-exception-message-box 0.1.0a0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyqt_current_exception_message_box-0.1.0a0.tar.gz | 3.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyqt_current_exception_message_box-0.1.0a0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.8 kB
Release files / pyqt_current_exception_message_box-0.1.0a0.tar.gz
| Download URL | pyqt_current_exception_message_box-0.1.0a0.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d4a913ba295677e8bc62571f31e814fd158122ab3f29c00816810e5b3e232afe
|
|
BLAKE2b-256 checksum How to use checksums |
c68cbb5d6615a1466502a2f1151feb1aacf0df7dbc141bf65b7be697834eb985
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.9
|
Release files / pyqt_current_exception_message_box-0.1.0a0-py3-none-any.whl
| Download URL | pyqt_current_exception_message_box-0.1.0a0-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
87de04770cb45af12f6e39bfebd898c69e5d92173e1ad200d24084d84ab4f27c
|
|
BLAKE2b-256 checksum How to use checksums |
e8fa48ec631099b3f4736b3f00aa26cf9879c791c4076eefd853677f37d5b395
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.9
|