docs: def removeTab(self, index):
          """
          Removes tab at index ``index``.
  
          This method will emits tab_closed for the removed tab.
  
          :param index: index of the tab to remove.
          """
          widget = self.widget(index)
          try:
              self._widgets.remove(widget)
          except ValueError:
              pass
          self.tab_closed.emit(widget)
          self._del_code_edit(widget)
          QTabWidget.removeTab(self, index)
          if widget == self._current:
              self._current = None