pyleecan.Functions.GUI.log_error module

log_error(widget, error_message, logger=None, is_popup=True, is_warning=False)[source]

Handle errors in try except to show the trace to help for debugging

  • widget (object) – object that throw the error

  • error_message (str) – the message that will be show in the Messagebox

  • logger (logger object) – where the logger is

  • is_popup (bool) – True to open a QMessageBox

  • is_warning (bool) – True to use a Warning message box instead of critical