Exemplo n.º 1
0
 def write(self, settings):
   settings_from_parasite = self._read_from_parasite(self.source_name)
   if settings_from_parasite is not None:
     settings_to_write = settings_from_parasite
     settings_to_write.update(self._to_dict(settings))
   else:
     settings_to_write = self._to_dict(settings)
   
   settings_data = pickle.dumps(settings_to_write)
   gimp.parasite_attach(gimp.Parasite(self.source_name, gimpenums.PARASITE_PERSISTENT, settings_data))
Exemplo n.º 2
0
    def write(self, settings):
        settings_from_parasite = self._read_from_parasite(self.source_name)
        if settings_from_parasite is not None:
            settings_to_write = settings_from_parasite
            settings_to_write.update(self._to_dict(settings))
        else:
            settings_to_write = self._to_dict(settings)

        settings_data = pickle.dumps(settings_to_write)
        gimp.parasite_attach(
            gimp.Parasite(self.source_name, gimpenums.PARASITE_PERSISTENT,
                          settings_data))
 def write_dict(self, setting_names_and_values):
     data = pickle.dumps(setting_names_and_values)
     gimp.parasite_attach(
         gimp.Parasite(self.source_name, gimpenums.PARASITE_PERSISTENT,
                       data))
 def write(self, settings):
     settings_data = pickle.dumps(self._to_dict(settings))
     gimp.parasite_attach(
         gimp.Parasite(self.source_name, gimpenums.PARASITE_PERSISTENT,
                       settings_data))
 def write(self, settings):
   settings_data = pickle.dumps(self._to_dict(settings))
   gimp.parasite_attach(gimp.Parasite(self.source_name, gimpenums.PARASITE_PERSISTENT, settings_data))
Exemplo n.º 6
0
 def write_dict(self, setting_names_and_values):
   data = pickle.dumps(setting_names_and_values)
   gimp.parasite_attach(
     gimp.Parasite(self.source_name, gimpenums.PARASITE_PERSISTENT, data))