Ejemplo n.º 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
Ejemplo n.º 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
Ejemplo n.º 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())
Ejemplo n.º 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())