code: def closeTab(self, item):
          
          index = self.indexOf(item)
          if index != -1:
              self.tabCloseRequested.emit(index)
docs: Requests a close for the inputed tab item.
  
          :param      item | <XViewPanelItem>