--- a/eric6/E5Gui/E5PassivePopup.py Sat Jan 02 17:28:57 2021 +0100 +++ b/eric6/E5Gui/E5PassivePopup.py Sun Jan 03 15:33:39 2021 +0100 @@ -11,8 +11,6 @@ from PyQt5.QtCore import pyqtSignal, Qt, QTimer, QPoint, QRect from PyQt5.QtWidgets import QFrame, QVBoxLayout, QApplication -from Globals import qVersionTuple - class E5PassivePopup(QFrame): """ @@ -189,12 +187,7 @@ w = self.minimumSizeHint().width() h = self.minimumSizeHint().height() - if qVersionTuple() >= (5, 10, 0): - r = (QApplication.screenAt(QPoint(x + w // 2, y + h // 2)) - .geometry()) - else: - r = QApplication.desktop().screenGeometry( - QPoint(x + w // 2, y + h // 2)) + r = QApplication.screenAt(QPoint(x + w // 2, y + h // 2)).geometry() if x < r.center().x(): x += target.width()