--- a/eric6/E5Gui/E5TabWidget.py Sat Sep 21 13:37:58 2019 +0200 +++ b/eric6/E5Gui/E5TabWidget.py Sat Sep 21 15:37:43 2019 +0200 @@ -81,9 +81,11 @@ @param event reference to the mouse move event (QMouseEvent) """ - if event.buttons() == Qt.MouseButtons(Qt.LeftButton) and \ - (event.pos() - self.__dragStartPos).manhattanLength() > \ - QApplication.startDragDistance(): + if ( + event.buttons() == Qt.MouseButtons(Qt.LeftButton) and + (event.pos() - self.__dragStartPos).manhattanLength() > + QApplication.startDragDistance() + ): drag = QDrag(self) mimeData = QMimeData() index = self.tabAt(event.pos()) @@ -102,10 +104,12 @@ """ mimeData = event.mimeData() formats = mimeData.formats() - if "action" in formats and \ - mimeData.data("action") == b"tab-reordering" and \ - "tabbar-id" in formats and \ - int(mimeData.data("tabbar-id")) == id(self): + if ( + "action" in formats and + mimeData.data("action") == b"tab-reordering" and + "tabbar-id" in formats and + int(mimeData.data("tabbar-id")) == id(self) + ): event.acceptProposedAction() E5WheelTabBar.dragEnterEvent(self, event)