eric6/E5Gui/E5PassivePopup.py

changeset 7252
c5e3705073eb
parent 7229
53054eb5b15a
child 7360
9190402e4505
equal deleted inserted replaced
7251:bc5b1b00560a 7252:c5e3705073eb
189 y = pos.y() 189 y = pos.y()
190 w = self.minimumSizeHint().width() 190 w = self.minimumSizeHint().width()
191 h = self.minimumSizeHint().height() 191 h = self.minimumSizeHint().height()
192 192
193 if qVersionTuple() >= (5, 10, 0): 193 if qVersionTuple() >= (5, 10, 0):
194 r = QApplication.screenAt(QPoint(x + w // 2, y + h // 2))\ 194 r = (QApplication.screenAt(QPoint(x + w // 2, y + h // 2))
195 .geometry() 195 .geometry())
196 else: 196 else:
197 r = QApplication.desktop().screenGeometry( 197 r = QApplication.desktop().screenGeometry(
198 QPoint(x + w // 2, y + h // 2)) 198 QPoint(x + w // 2, y + h // 2))
199 199
200 if x < r.center().x(): 200 if x < r.center().x():

eric ide

mercurial