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()
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()
def validatePage(self, *args, **kwargs): if validatePath(self.comboBox.currentText()): return True else: return False