Exemple #1
0
def path(parent):
    while not validatePath(util.settings.value("ForgedAlliance/app/path", "", type=str)):
        logger.warn("Invalid game path: " + util.settings.value("ForgedAlliance/app/path", "", type=str))
        wizard = Wizard(parent)
        result = wizard.exec_()
        if result == QtGui.QWizard.Rejected:
            return False

    logger.info("Writing fa_path.lua config file.")
    writeFAPathLua()
Exemple #2
0
def path(parent):
    while not validatePath(
            util.settings.value("ForgedAlliance/app/path", "", type=str)):
        logger.warn(
            "Invalid game path: " +
            util.settings.value("ForgedAlliance/app/path", "", type=str))
        wizard = Wizard(parent)
        result = wizard.exec_()
        if result == QtGui.QWizard.Rejected:
            return False

    logger.info("Writing fa_path.lua config file.")
    writeFAPathLua()
Exemple #3
0
 def validatePage(self, *args, **kwargs):
     if validatePath(self.comboBox.currentText()):
         return True
     else:
         return False
Exemple #4
0
 def validatePage(self, *args, **kwargs):
     if validatePath(self.comboBox.currentText()):
         return True
     else:
         return False