Add isWindows7() in Utility.py

Signed-off-by: Loren Eteval <loren.eteval@proton.me>
This commit is contained in:
Loren Eteval
2023-10-19 17:22:33 +08:00
parent b0cbdbe328
commit 4fd418ea15
+5
View File
@@ -19,6 +19,7 @@ from Furious.Gui.Icon import Icon
from Furious.Utility.Constants import (
APP,
PLATFORM,
PLATFORM_RELEASE,
ROOT_DIR,
PYSIDE6_VERSION,
DEFAULT_TOR_SOCKS_PORT,
@@ -444,6 +445,10 @@ def isPythonw():
return not isRealFile(sys.__stdout__) or not isRealFile(sys.__stderr__)
def isWindows7():
return PLATFORM == 'Windows' and PLATFORM_RELEASE == '7'
def moveToCenter(widget, parent=None):
geometry = widget.geometry()