From c930732a29ba78e52dac5cd2ef177354f2896210 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sun, 24 Oct 2021 22:09:43 +1000 Subject: [PATCH] fix qt5/windows-only attribute reference in aqt/__init__.py --- qt/aqt/__init__.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/qt/aqt/__init__.py b/qt/aqt/__init__.py index ea2742d7d..d15d03640 100644 --- a/qt/aqt/__init__.py +++ b/qt/aqt/__init__.py @@ -544,9 +544,7 @@ def _run(argv: Optional[list[str]] = None, exec: bool = True) -> Optional[AnkiAp # disable help button in title bar on qt versions that support it if isWin and qtmajor == 5 and qtminor >= 10: - QApplication.setAttribute( - QApplication.Attribute.AA_DisableWindowContextHelpButton # type: ignore - ) + QApplication.setAttribute(Qt.AA_DisableWindowContextHelpButton) # type: ignore # proxy configured? from urllib.request import getproxies, proxy_bypass