Switch test code to PyQt6
This commit is contained in:
+15
-15
@@ -201,21 +201,21 @@ def main(sysArgs: list | None = None) -> GuiMain | None:
|
||||
# Check Packages and Versions
|
||||
errorData = []
|
||||
errorCode = 0
|
||||
# if sys.hexversion < 0x030a00f0:
|
||||
# errorData.append(
|
||||
# "At least Python 3.10 is required, found %s" % CONFIG.verPyString
|
||||
# )
|
||||
# errorCode |= 0x04
|
||||
# if CONFIG.verQtValue < 0x060000:
|
||||
# errorData.append(
|
||||
# "At least Qt6 version 6.0 is required, found %s" % CONFIG.verQtString
|
||||
# )
|
||||
# errorCode |= 0x08
|
||||
# if CONFIG.verPyQtValue < 0x060000:
|
||||
# errorData.append(
|
||||
# "At least PyQt6 version 6.0 is required, found %s" % CONFIG.verPyQtString
|
||||
# )
|
||||
# errorCode |= 0x10
|
||||
if sys.hexversion < 0x030a00f0:
|
||||
errorData.append(
|
||||
"At least Python 3.10 is required, found %s" % CONFIG.verPyString
|
||||
)
|
||||
errorCode |= 0x04
|
||||
if CONFIG.verQtValue < 0x060000:
|
||||
errorData.append(
|
||||
"At least Qt6 version 6.0 is required, found %s" % CONFIG.verQtString
|
||||
)
|
||||
errorCode |= 0x08
|
||||
if CONFIG.verPyQtValue < 0x060000:
|
||||
errorData.append(
|
||||
"At least PyQt6 version 6.0 is required, found %s" % CONFIG.verPyQtString
|
||||
)
|
||||
errorCode |= 0x10
|
||||
|
||||
if errorData:
|
||||
errApp = QApplication([])
|
||||
|
||||
Reference in New Issue
Block a user