Пример #1
0
 def save_all(self):
     self.action.name = self.ui.get_widget("__action-name__").get_text().decode("UTF-8")
     for row in self.params_model:
         self.action.set_param(row[0], row[3])
     if self._old_action_name:
         actions.remove_action(self._old_action_name, no_save=True)
     actions.add_action(self.action)
Пример #2
0
 def update_after_delete(self, path, name):
     actions.remove_action(name)