|
Scribus
Open source desktop publishing at your fingertips
|
Classes | |
| class | ExceptHookDialog |
Functions | |
| def | on_error (exc_type, exc_obj, exc_tb) |
| def | show_current_error |
| def | install () |
| def | uninstall () |
Variables | |
| tuple | app = QApplication(sys.argv) |
| int | fail = 1 |
| int | fail2 = 1 |
Exception hook If some unexpected error occures it can be shown in a nice looking dialog. Especially useful is the traceback view. Things to extend: Clicking on the filename should open an editor. Things to consider: Mail exceptions, copy to clipboard or send to bug tracker.
| def excepthook.on_error | ( | exc_type, | |
| exc_obj, | |||
| exc_tb | |||
| ) |
This is the callback function for sys.excepthook
| def excepthook.show_current_error | ( | title = None | ) |
Call this function to show the current error. It can be used inside an except-block.