Unifica finestre errori con testo completo, copia ed esportazione
This commit is contained in:
@@ -6,7 +6,8 @@ import asyncio
|
||||
import json
|
||||
import tkinter as tk
|
||||
from pathlib import Path
|
||||
from tkinter import messagebox, ttk
|
||||
import error_dialog as messagebox
|
||||
from tkinter import ttk
|
||||
from typing import Any
|
||||
|
||||
from async_msssql_query import AsyncMSSQLClient, make_mssql_dsn
|
||||
@@ -373,6 +374,7 @@ class DatabaseConfigWindow(tk.Toplevel):
|
||||
loc_text("dbconfig.msg.title", catalog=self._locale_catalog, default="Configurazione Database"),
|
||||
loc_text("dbconfig.msg.test_error", catalog=self._locale_catalog, default="Connessione fallita:\n{error}").format(error=ex),
|
||||
parent=self,
|
||||
exception=ex,
|
||||
)
|
||||
return
|
||||
messagebox.showinfo(
|
||||
@@ -393,6 +395,7 @@ class DatabaseConfigWindow(tk.Toplevel):
|
||||
loc_text("dbconfig.msg.title", catalog=self._locale_catalog, default="Configurazione Database"),
|
||||
loc_text("dbconfig.msg.save_error", catalog=self._locale_catalog, default="Salvataggio fallito:\n{error}").format(error=ex),
|
||||
parent=self,
|
||||
exception=ex,
|
||||
)
|
||||
return
|
||||
self.result_config = config
|
||||
|
||||
Reference in New Issue
Block a user