|
Krita Source Code Documentation
|
Classes | |
| class | ExceptHookDialog |
Functions | |
| install () | |
| on_error (exc_type, exc_obj, exc_tb) | |
| show_current_error (title=None) | |
| uninstall () | |
Variables | |
| app = QApplication(sys.argv) | |
| int | fail = 1 / 0 |
| int | fail2 = 1 / 0 |
Exception hook If some unexpected error occurs 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.
| krita.excepthook.install | ( | ) |
Definition at line 46 of file excepthook.py.
| krita.excepthook.on_error | ( | exc_type, | |
| exc_obj, | |||
| exc_tb ) |
This is the callback function for sys.excepthook
Definition at line 27 of file excepthook.py.
| krita.excepthook.show_current_error | ( | title = None | ) |
Call this function to show the current error. It can be used inside an except-block.
Definition at line 36 of file excepthook.py.
| krita.excepthook.uninstall | ( | ) |
Definition at line 51 of file excepthook.py.
| krita.excepthook.app = QApplication(sys.argv) |
Definition at line 79 of file excepthook.py.
| int krita.excepthook.fail = 1 / 0 |
Definition at line 83 of file excepthook.py.
| int krita.excepthook.fail2 = 1 / 0 |
Definition at line 87 of file excepthook.py.