code: def toggleActions(self, value=True):
          
          for z in self.actions.zoomActions:
              z.setEnabled(value)
          for action in self.actions.onLoadActive:
              action.setEnabled(value)
docs: Enable/Disable widgets which depend on an opened image.