code: def mousePressEvent(self, event):
          
          if event.button() == Qt.LeftButton:
              self.__drag_start_pos = QPoint(event.pos())
          QTabBar.mousePressEvent(self, event)
docs: Reimplement Qt method