code: def gotoNext(self):
          
          index = self._currentPanel.currentIndex() + 1
          if ( self._currentPanel.count() == index ):
              index = 0
              
          self._currentPanel.setCurrentIndex(index)
docs: Goes to the next panel tab.