--- a/src/eric7/UI/PythonAstViewer.py Thu May 25 11:12:05 2023 +0200 +++ b/src/eric7/UI/PythonAstViewer.py Thu May 25 19:51:47 2023 +0200 @@ -68,6 +68,7 @@ QAbstractItemView.SelectionMode.SingleSelection ) self.__astWidget.setAlternatingRowColors(True) + self.__astWidget.setExpandsOnDoubleClick(False) self.__errorColor = QBrush(Preferences.getPython("ASTViewerErrorColor")) @@ -101,7 +102,7 @@ if editor and editor is self.__editor: self.__loadAST() - def __editorDoubleClicked(self, editor, pos, buttons): + def __editorDoubleClicked(self, editor, pos, buttons): # noqa: U100 """ Private slot to handle a mouse button double click in the editor. @@ -110,7 +111,7 @@ @param pos position of the double click @type QPoint @param buttons mouse buttons that were double clicked - @type Qt.MouseButtons + @type Qt.MouseButton """ if editor is self.__editor and buttons == Qt.MouseButton.LeftButton: if editor.isModified():