Sécurisation du code avec try : execpt

This commit is contained in:
2026-03-24 11:21:54 +01:00
parent 177f224760
commit 6eccea5b9d
5 changed files with 123 additions and 65 deletions

14
src/ui/error_dialog.py Normal file
View File

@@ -0,0 +1,14 @@
from PySide6.QtWidgets import QWidget
from ui.custom_message_box import CustomMessageBox
def show_qt_error(parent: QWidget | None, title: str, message: str) -> None:
msg = CustomMessageBox(
title=title,
message=message,
icon_type=CustomMessageBox.WARNING,
buttons=CustomMessageBox.OK,
parent=parent,
)
msg.exec()