Dialoge für Vorlagen-Piepeline ergänzt

This commit is contained in:
2026-03-20 12:42:21 +01:00
parent 7cd6e3ef24
commit ae5f88c5b8
2 changed files with 28 additions and 0 deletions

View File

@@ -39,6 +39,20 @@ def ask_yes_no(
return default
def show_info_dialog(title: str, message: str, parent: Any = None) -> None:
"""
Zeigt einen modalen Info-Dialog mit OK-Button.
Blockiert bis der Nutzer bestätigt.
"""
try:
if QT_VERSION == 0: # Mock-Modus
print(f"Mock-Modus: show_info_dialog('{title}')")
return
QMessageBox.information(parent, title, message)
except Exception as e:
print(f"⚠️ show_info_dialog Fehler: {e}")
OverwriteDecision = Optional[Literal["overwrite", "append", "cancel"]]