|
|
@ -126,6 +126,12 @@ else: |
|
|
|
|
|
|
|
|
|
|
|
logger.info("PATHS: {}".format(PATHS)) |
|
|
|
from PyQt5.QtWidgets import QApplication |
|
|
|
#Construct QAppliction before constantsAndCOnfigs, which has the fontDB |
|
|
|
QtGui.QGuiApplication.setDesktopSettingsAware(False) #We need our own font so the user interface stays predictable |
|
|
|
QtGui.QGuiApplication.setDesktopFileName(PATHS["desktopfile"]) |
|
|
|
qtApp = QApplication(sys.argv) |
|
|
|
setPaletteAndFont(qtApp) |
|
|
|
|
|
|
|
|
|
|
|
def exitWithMessage(message:str): |
|
|
@ -133,12 +139,10 @@ def exitWithMessage(message:str): |
|
|
|
if sys.stdout.isatty(): |
|
|
|
sys.exit(title + ": " + message) |
|
|
|
else: |
|
|
|
from PyQt5.QtWidgets import QMessageBox, QApplication |
|
|
|
#This is the start file for the Qt client so we know at least that Qt is installed and use that for a warning. |
|
|
|
qErrorApp = QApplication(sys.argv) |
|
|
|
setPaletteAndFont(qErrorApp) |
|
|
|
QMessageBox.critical(qErrorApp.desktop(), title, message) |
|
|
|
qErrorApp.quit() |
|
|
|
from PyQt5.QtWidgets import QMessageBox |
|
|
|
#This is the start file for the Qt client so we know at least that Qt is installed and use that for a warning. |
|
|
|
QMessageBox.critical(qtApp.desktop(), title, message) |
|
|
|
qtApp.quit() |
|
|
|
sys.exit(title + ": " + message) |
|
|
|
|
|
|
|
def setProcessName(executableName): |
|
|
|