Feat/error message popup util mg
Description
Original MR !224 (closed) closed in favour of this one made with improvements from @guijar_m.
- General utility to display any raise error as a message box with traceback to user. Can be activated globally or just for certain methods with decorator
@SafeSlot(popup_error=True)
. Very useful for developing standalone waveform widget. - Warning message box with simple API to raise warning.
Related Issues
related to #243 (closed)
Type of Change
- New utility for automatic error display as message box
Potential side effects
Decorator do not fully work with PyQt6 and can lead to crash of app in some cases, due to fact that in PyQt6 unhandled exceptions in slot methods can cause the application to crash because the exceptions propagate back to the Qt event loop, which is not designed to handle them. I don't know how to fix it at the moment.
Screenshots / GIFs (if applicable)
[Include any relevant screenshots or GIFs to showcase the changes made.]
Additional Comments
There is a small test example in the → works great with both environments.qt_utils/error_popups
for you to check the functionality. Be aware that this can crash with PyQt6 environments!