From ae5062148fa16f40c2d4a5f0ffac3ed002895e29 Mon Sep 17 00:00:00 2001 From: GBergatto Date: Sat, 23 Dec 2023 10:08:42 +0100 Subject: [PATCH] Fix import errors on Anki 23.10 --- touchscreen/__init__.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/touchscreen/__init__.py b/touchscreen/__init__.py index 41bdb11..7acab5f 100644 --- a/touchscreen/__init__.py +++ b/touchscreen/__init__.py @@ -21,18 +21,16 @@ __addon_name__ = "TouchScreen" __version__ = "0.2.6" -from aqt import mw, dialogs -from aqt.utils import showWarning +from aqt import mw +from aqt.utils import showWarning from anki.lang import _ from anki.hooks import addHook -from PyQt5.QtWidgets import QAction, QMenu, QColorDialog, QMessageBox, QInputDialog -from PyQt5 import QtCore -from PyQt5.QtGui import QKeySequence -from PyQt5.QtGui import QColor -from PyQt5.QtCore import pyqtSlot as slot +from aqt import QMenu, QColorDialog, QMessageBox, QInputDialog, QAction, QKeySequence, QColor +from aqt import pyqtSlot as slot + # This declarations are there only to be sure that in case of troubles # with "profileLoaded" hook everything will work.