code: def moveTab(self, fromIndex, toIndex):
          
          try:
              item = self.layout().itemAt(fromIndex)
              self.layout().insertItem(toIndex, item.widget())
          except StandardError:
              pass
docs: Moves the tab from the inputed index to the given index.
  
          :param      fromIndex | <int>
                      toIndex   | <int>