Example #1
0
    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
Example #2
0
    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
Example #3
0
    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())
Example #4
0
    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())