We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 723e733 + c02851a commit 86c5f52Copy full SHA for 86c5f52
src/Display/SimpleGui.py
@@ -179,8 +179,8 @@ def __init__(self, *args: Any) -> None:
179
def centerOnScreen(self) -> None:
180
"""Centers the window on the screen."""
181
resolution = QtWidgets.QApplication.desktop().screenGeometry()
182
- x = (resolution.width() - self.frameSize().width()) / 2
183
- y = (resolution.height() - self.frameSize().height()) / 2
+ x = (resolution.width() - self.frameSize().width()) // 2
+ y = (resolution.height() - self.frameSize().height()) // 2
184
self.move(x, y)
185
186
def add_menu(self, menu_name: str) -> None:
0 commit comments