#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ AzA Kontakt-Panel — duenner Starter (Phase 1, lokal). Startet die bestehende Empfang-Web-Huelle (aza_empfang_webview) im neuen Modus ``kontakt_panel``: schmal/hoch, eigener Fenstertitel "AzA Kontakte", eigene AppUserModelID (eigenes Taskleisten-Icon-Gruppierung), eigener WebView2-Storage. Enthaelt KEINE Chatlogik — die gesamte Chat-/Kontakt-/Session-Logik kommt unveraendert aus web/empfang.html bzw. aza_empfang_webview.py. Start (Entwicklung): python aza_kontakt_panel.py Optional: eine eigene Start-URL als erstes Argument (sonst Standard-Panel-URL). """ from __future__ import annotations import sys from aza_empfang_webview import main, _build_default_kontakt_panel_url _KONTAKT_PANEL_AUMID = "ch.aza-medwork.empfang.kontaktpanel" def run() -> int: # AUMID frueh setzen (Taskleisten-Gruppierung getrennt von Empfang-Huelle). if sys.platform == "win32": try: import ctypes ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID( _KONTAKT_PANEL_AUMID, ) except Exception: pass argv = list(sys.argv[1:]) if not argv or not str(argv[0]).strip(): argv = [_build_default_kontakt_panel_url()] return main(argv) if __name__ == "__main__": raise SystemExit(run())