All the library (included natives) process are test finished.

This commit is contained in:
2026-07-12 22:43:34 +08:00
parent e42a9b0a50
commit 864ce33db1
8 changed files with 1094 additions and 469 deletions
+5
View File
@@ -1,3 +1,4 @@
from PySide6.QtCore import QCoreApplication, QThread
from PySide6.QtGui import QScreen
from PySide6.QtWidgets import QMainWindow, QApplication
@@ -8,3 +9,7 @@ def move_window_to_center(window: QMainWindow):
geometry = window.frameGeometry()
geometry.moveCenter(center)
window.move(geometry.topLeft())
def is_main_thread() -> bool:
app = QCoreApplication.instance()
return app is not None and QThread.currentThread() == app.thread()