Ajout d'une tool box pour utiliser dwm car régression dans pyside 6.11. Pour le moment rester sur pyside 6.10.2

This commit is contained in:
2026-03-24 13:29:26 +01:00
parent 5bdbd82232
commit 89af06b24c
+12
View File
@@ -0,0 +1,12 @@
import ctypes
from sys import platform
def enable_blur_behind(hwnd: int) -> None:
"""Force DWM à activer la composition derrière la fenêtre."""
if not platform.startswith('win'):
return
try:
margins = (ctypes.c_int * 4)(-1, -1, -1, -1)
ctypes.windll.dwmapi.DwmExtendFrameIntoClientArea(hwnd, ctypes.byref(margins))
except Exception:
pass # Silencieux si DWM indisponible