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(): |