Files
Launcher/core_lib/qt/hack.py
T
wei a93641b26d Update many files.
Add some description about this project, and now it has a simple UI (made with Qt)

If you don't specify the mode of (interface?) the UI. Launcher will show a crude window that lets you
 select a mode to start the (real) launcher.

Test version data fetching functions. Looks great.
2026-07-10 23:27:21 +08:00

11 lines
354 B
Python

from PySide6.QtGui import QScreen
from PySide6.QtWidgets import QMainWindow, QApplication
def move_window_to_center(window: QMainWindow):
main_screen = QApplication.primaryScreen()
center = QScreen.availableGeometry(main_screen).center()
geometry = window.frameGeometry()
geometry.moveCenter(center)
window.move(geometry.topLeft())