예제 #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
예제 #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
예제 #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())
예제 #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())