24 from PyQt4
import QtCore, QtGui
29 PRESETS_GROUP_NAME =
"Presets"
30 PRESET_GROUP_NAME =
"Preset"
31 NAME_ATTRIBUTE_NAME =
"Name"
37 self.
root_ = self.handle_.Root()
39 self.
presets_ = self.root_.RetrieveGroup(ImmutablePresetInfoHandler.PRESETS_GROUP_NAME)
43 group_list = self.presets_.GetGroups(ImmutablePresetInfoHandler.PRESET_GROUP_NAME)
44 for group
in group_list:
45 if group.HasAttribute(ImmutablePresetInfoHandler.NAME_ATTRIBUTE_NAME):
46 groupname = group.GetAttribute(ImmutablePresetInfoHandler.NAME_ATTRIBUTE_NAME)
48 preset = Preset.FromInfo(group)
53 group_list = self.presets_.GetGroups(ImmutablePresetInfoHandler.PRESET_GROUP_NAME)
56 for group
in group_list:
57 if group.HasAttribute(ImmutablePresetInfoHandler.NAME_ATTRIBUTE_NAME):
58 preset = Preset.FromInfo(group)
string NAME_ATTRIBUTE_NAME