code: def assignGroup(self, action):
          
          grp  = unwrapVariant(action.data())
          view = self._currentPanel.currentView()
          view.setViewingGroup(grp)
docs: Assigns the group for the given action to the current view.
          
          :param      action | <QAction>