All the library (included natives) process are test finished.
This commit is contained in:
@@ -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()
|
||||
Reference in New Issue
Block a user