code: def enable(self, name=None):
          
          if name is None:
              for name in self._actions_dict:
                  self.enable(name)
              return
          self._actions_dict[name].qaction.setEnabled(True)
docs: Enable one or all actions.