sec_interp.gui.main_dialog_messages module
- class sec_interp.gui.main_dialog_messages.MessageManager(dialog)[source]
Bases:
objectManages user messages and error handling for the SecInterp dialog.
- __init__(dialog)[source]
Initialize the MessageManager.
- Parameters:
dialog – The main SecInterpDialog instance.
- handle_error(error: Exception, title: str = 'Error')[source]
Centralized error handling.
- Parameters:
error – The exception to handle.
title – Title for the error message.
- push_message(title: str, message: str, level: int = qgis.core.Qgis.Info, duration: int = 5)[source]
Push a message to the QGIS message bar.
- Parameters:
title – Message title.
message – Message content.
level – Qgis message level (Info, Warning, Critical, Success).
duration – Visibility duration in seconds.