Unifica finestre errori con testo completo, copia ed esportazione
This commit is contained in:
@@ -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,
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user