示例#1
0
文件: check.py 项目: MathieuB8/test2
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()
示例#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()
示例#3
0
 def validatePage(self, *args, **kwargs):
     if validatePath(self.comboBox.currentText()):
         return True
     else:
         return False
示例#4
0
 def validatePage(self, *args, **kwargs):
     if validatePath(self.comboBox.currentText()):
         return True
     else:
         return False