--- a/eric7/UI/Previewers/PreviewerHTML.py Sun May 16 11:43:59 2021 +0200 +++ b/eric7/UI/Previewers/PreviewerHTML.py Sun May 16 20:07:24 2021 +0200 @@ -16,9 +16,9 @@ import io import contextlib -from PyQt5.QtCore import pyqtSlot, pyqtSignal, Qt, QUrl, QThread -from PyQt5.QtGui import QCursor -from PyQt5.QtWidgets import ( +from PyQt6.QtCore import pyqtSlot, pyqtSignal, Qt, QUrl, QThread +from PyQt6.QtGui import QCursor +from PyQt6.QtWidgets import ( QWidget, QVBoxLayout, QLabel, QCheckBox, QSizePolicy, QToolTip ) @@ -51,7 +51,7 @@ self.__previewAvailable = True try: - from PyQt5.QtWebEngineWidgets import QWebEngineView + from PyQt6.QtWebEngineWidgets import QWebEngineView self.previewView = QWebEngineView(self) self.previewView.page().linkHovered.connect(self.__showLink) except ImportError: @@ -263,7 +263,7 @@ """ Private method to save scroll bar positions for a previewed editor. """ - from PyQt5.QtCore import QPoint + from PyQt6.QtCore import QPoint try: pos = self.previewView.scrollPosition() except AttributeError: @@ -303,7 +303,7 @@ @return result of the script @rtype depending upon script result """ - from PyQt5.QtCore import QEventLoop + from PyQt6.QtCore import QEventLoop loop = QEventLoop() resultDict = {"res": None}