code: def gotoPrevious(self):
          
          index = self._currentPanel.currentIndex() - 1
          if index < 0:
              index = self._currentPanel.count() - 1
          
          self._currentPanel.setCurrentIndex(index)
docs: Goes to the previous panel tab.