def __checkPresetForCurrent(self, presetIdx): for name, value in graphics.getGraphicsPresets(presetIdx).iteritems(): graphicSetting = graphics.getGraphicsSetting(name) if graphicSetting is None or value != graphicSetting.value: return False return True
def __parsePresets(self): for key, idx in graphics.getGraphicsPresetsIndices().iteritems(): self.__presets.append( self.Preset(idx, key, dict(graphics.getGraphicsPresets(idx)))._asdict()) self.__presets.append( self.Preset(idx + 1, self.CUSTOM_PRESET_KEY, {})._asdict())
def __parsePresets(self): for key, idx in graphics.getGraphicsPresetsIndices().iteritems(): self.__presets.append(self.Preset(idx, key, dict(graphics.getGraphicsPresets(idx)))._asdict()) self.__presets.append(self.Preset(idx + 1, self.CUSTOM_PRESET_KEY, {})._asdict())