blob: 4ca22501d5312b6630e423e5dc05e65053750708 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- a/qt/aqt/qt/__init__.py
+++ b/qt/aqt/qt/__init__.py
@@ -11,16 +11,7 @@
from collections.abc import Callable
from typing import TypeVar, Union
-try:
- import PyQt6
-except Exception:
- from .qt5 import * # type: ignore
-else:
- if os.getenv("ENABLE_QT5_COMPAT"):
- print("Running with temporary Qt5 compatibility shims.")
- from . import qt5_compat # needs to be imported first
- from .qt6 import *
-
+from .qt5 import * # type: ignore
from anki.utils import is_mac, is_win
# fix buggy ubuntu12.04 display of language selector
|