Unifica finestre errori con testo completo, copia ed esportazione

This commit is contained in:
2026-10-23 10:57:35 +02:00
parent fc43cbb7ec
commit 9d87b07648
24 changed files with 570 additions and 66 deletions

View File

@@ -3,7 +3,8 @@
from __future__ import annotations
import tkinter as tk
from tkinter import messagebox, ttk
import error_dialog as messagebox
from tkinter import ttk
from typing import Any
import customtkinter as ctk
@@ -177,6 +178,7 @@ class UDCNonScaffalateWindow(ctk.CTkToplevel):
loc_text("non_shelved.title", catalog=self._locale_catalog, default="UDC non scaffalate"),
str(exc),
parent=self if self._is_alive() else None,
exception=exc,
)
def _on_loaded(self, res: dict[str, Any] | None) -> None:
@@ -207,6 +209,7 @@ class UDCNonScaffalateWindow(ctk.CTkToplevel):
loc_text("non_shelved.title", catalog=self._locale_catalog, default="UDC non scaffalate"),
str(exc),
parent=self,
exception=exc,
)
def _on_error(self, exc: BaseException) -> None:
@@ -219,6 +222,7 @@ class UDCNonScaffalateWindow(ctk.CTkToplevel):
loc_text("non_shelved.title", catalog=self._locale_catalog, default="UDC non scaffalate"),
str(exc),
parent=self,
exception=exc,
)