24 from PyQt4
import QtCore, QtGui
25 from immutable_loader_info_handler
import ImmutableLoaderInfoHandler
31 ImmutableLoaderInfoHandler.__init__(self, file_name)
34 group = self.loaders_.CreateGroup(ImmutableLoaderInfoHandler.LOADER_GROUP_NAME)
35 group.SetAttribute(ImmutableLoaderInfoHandler.NAME_ATTRIBUTE_NAME, str(name))
37 self.handle_.Export(self.file_name_)
40 group_list = self.loaders_.GetGroups(ImmutableLoaderInfoHandler.LOADER_GROUP_NAME)
42 for group
in group_list:
43 if group.HasAttribute(ImmutableLoaderInfoHandler.NAME_ATTRIBUTE_NAME):
44 groupname = group.GetAttribute(ImmutableLoaderInfoHandler.NAME_ATTRIBUTE_NAME)
49 if group_to_del !=
None:
50 self.loaders_.Remove(group_to_del)
51 self.handle_.Export(self.file_name_)
54 group_list = self.loaders_.GetGroups(ImmutableLoaderInfoHandler.LOADER_GROUP_NAME)
55 for group
in group_list:
56 if group.HasAttribute(ImmutableLoaderInfoHandler.NAME_ATTRIBUTE_NAME):
57 groupname = group.GetAttribute(ImmutableLoaderInfoHandler.NAME_ATTRIBUTE_NAME)
59 group.SetAttribute(ImmutableLoaderInfoHandler.NAME_ATTRIBUTE_NAME, new)
60 self.handle_.Export(self.file_name_)