mirror of
https://github.com/LorenEteval/Furious.git
synced 2026-10-07 22:38:21 +03:00
Add isWindows7() in Utility.py
Signed-off-by: Loren Eteval <loren.eteval@proton.me>
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user