This commit is contained in:
2026-05-28 18:58:38 +02:00
parent 641bb10479
commit 28f429885a
4950 changed files with 933414 additions and 666 deletions

View File

@@ -19,6 +19,10 @@ import sys
import threading
import tkinter as tk
from http.server import BaseHTTPRequestHandler, ThreadingHTTPServer
_POPEN_NO_CONSOLE: dict = (
{"creationflags": subprocess.CREATE_NO_WINDOW} if sys.platform == "win32" else {}
)
from pathlib import Path
from tkinter import messagebox
from urllib.parse import parse_qs, unquote, urlencode, urlparse, urlunparse
@@ -261,6 +265,7 @@ def start_office() -> tuple[bool, str]:
[str(exe)],
cwd=str(exe.parent),
close_fds=(sys.platform != "win32"),
**_POPEN_NO_CONSOLE,
)
return True, f"Gestartet: {exe.name}"
script = _ROOT / "basis14.py"
@@ -270,6 +275,7 @@ def start_office() -> tuple[bool, str]:
[sys.executable, str(script)],
cwd=str(_ROOT),
close_fds=(sys.platform != "win32"),
**_POPEN_NO_CONSOLE,
)
return True, "AzA Office wird gestartet."
except Exception as exc:
@@ -288,6 +294,7 @@ def start_praxischat() -> tuple[bool, str]:
[str(exe), mode_arg, url, w, h],
cwd=str(exe.parent),
close_fds=(sys.platform != "win32"),
**_POPEN_NO_CONSOLE,
)
return True, f"Praxischat wird gestartet ({exe.name})."
script = _ROOT / "aza_empfang_webview.py"
@@ -300,6 +307,7 @@ def start_praxischat() -> tuple[bool, str]:
[sys.executable, str(script), mode_arg, url, w, h],
cwd=str(_ROOT),
close_fds=(sys.platform != "win32"),
**_POPEN_NO_CONSOLE,
)
return True, "Praxischat wird gestartet."
except Exception as exc:
@@ -765,7 +773,10 @@ def run_webview_panel() -> int:
try:
from aza_updater import run_startup_update_check_in_background
run_startup_update_check_in_background(delay_seconds=1.5)
run_startup_update_check_in_background(
delay_seconds=1.5,
use_native_dialog=True,
)
except Exception as exc:
print(f"[AzA Startpanel] UPDATE_CHECK init skipped: {exc}")
webview.start(
@@ -888,7 +899,13 @@ class AzAStartPanelTk:
try:
from aza_updater import run_startup_update_check_in_background
self.root.after(1500, run_startup_update_check_in_background)
self.root.after(
1500,
lambda: run_startup_update_check_in_background(
parent=self.root,
schedule_on_main=lambda fn: self.root.after(0, fn),
),
)
except Exception as exc:
print(f"[AzA Startpanel] UPDATE_CHECK init skipped: {exc}")