--- a/src/eric7/QScintilla/Editor.py Sun Jan 14 12:39:11 2024 +0100 +++ b/src/eric7/QScintilla/Editor.py Sun Jan 14 12:43:24 2024 +0100 @@ -32,14 +32,29 @@ pyqtSignal, pyqtSlot, ) -from PyQt6.QtGui import QAction, QActionGroup, QFont, QPainter, QPalette, QPixmap +from PyQt6.QtGui import ( + QAction, + QActionGroup, + QCursor, + QFont, + QPainter, + QPalette, + QPixmap, +) from PyQt6.QtPrintSupport import ( QAbstractPrintDialog, QPrintDialog, QPrinter, QPrintPreviewDialog, ) -from PyQt6.QtWidgets import QApplication, QDialog, QInputDialog, QLineEdit, QMenu +from PyQt6.QtWidgets import ( + QApplication, + QDialog, + QInputDialog, + QLineEdit, + QMenu, + QToolTip, +) from eric7 import Globals, Preferences, Utilities from eric7.CodeFormatting.BlackFormattingAction import BlackFormattingAction @@ -3976,8 +3991,6 @@ @param y y-value of mouse screen position @type int """ - from PyQt6.QtGui import QCursor - from PyQt6.QtWidgets import QToolTip margin = self.__marginNumber(x) if margin == self.__indicMargin: # determine width of all margins; needed to calculate document line @@ -4006,7 +4019,6 @@ """ Private slot cancelling the display of syntax error or a warning marker text. """ - from PyQt6.QtWidgets import QToolTip QToolTip.hideText() @pyqtSlot()