code: def create_action(self):
          
          actions = {}
  
          act = QAction('Load Montage...', self)
          act.triggered.connect(self.load_channels)
          act.setEnabled(False)
          actions['load_channels'] = act
  
          act = QAction('Save Montage...', self)
          act.triggered.connect(self.save_channels)
          act.setEnabled(False)
          actions['save_channels'] = act
  
          self.action = actions
docs: Create actions related to channel selection.