diff -r 0572a215bd2f -r 5994b80b8760 eric6/Project/CreateDialogCodeDialog.py --- a/eric6/Project/CreateDialogCodeDialog.py Sun Apr 11 16:53:48 2021 +0200 +++ b/eric6/Project/CreateDialogCodeDialog.py Sun Apr 11 18:45:10 2021 +0200 @@ -339,19 +339,19 @@ itm2 = QStandardItem(methodDict["signature"]) itm.appendRow(itm2) - if self.__module is not None: - if ( - methodDict["methods"][0] in signatureList or - methodDict["methods"][1] in signatureList - ): - itm2.setFlags( - Qt.ItemFlags(Qt.ItemFlag.ItemIsEnabled)) - itm2.setCheckState(Qt.CheckState.Checked) - if e5App().usesDarkPalette(): - itm2.setForeground(QBrush(QColor("#75bfff"))) - else: - itm2.setForeground(QBrush(Qt.GlobalColor.blue)) - continue + if ( + self.__module is not None and + (methodDict["methods"][0] in signatureList or + methodDict["methods"][1] in signatureList) + ): + itm2.setFlags( + Qt.ItemFlags(Qt.ItemFlag.ItemIsEnabled)) + itm2.setCheckState(Qt.CheckState.Checked) + if e5App().usesDarkPalette(): + itm2.setForeground(QBrush(QColor("#75bfff"))) + else: + itm2.setForeground(QBrush(Qt.GlobalColor.blue)) + continue itm2.setData(methodDict["pyqt_signature"], pyqtSignatureRole)