Wed, 19 Oct 2022 17:47:50 +0200
Changed the 'Create Dialog Code Dialog' to adhere to the formatting rules of the 'Black' tool.
--- a/src/eric7/CodeTemplates/impl_pyqt5.py.tmpl Wed Oct 19 17:00:05 2022 +0200 +++ b/src/eric7/CodeTemplates/impl_pyqt5.py.tmpl Wed Oct 19 17:47:50 2022 +0200 @@ -14,10 +14,11 @@ """ Class documentation goes here. """ + def __init__(self, parent=None): """ Constructor - + @param parent reference to the parent widget (defaults to None) @type QWidget (optional) """
--- a/src/eric7/CodeTemplates/impl_pyqt6.py.tmpl Wed Oct 19 17:00:05 2022 +0200 +++ b/src/eric7/CodeTemplates/impl_pyqt6.py.tmpl Wed Oct 19 17:47:50 2022 +0200 @@ -14,10 +14,11 @@ """ Class documentation goes here. """ + def __init__(self, parent=None): """ Constructor - + @param parent reference to the parent widget (defaults to None) @type QWidget (optional) """
--- a/src/eric7/CodeTemplates/impl_pyside2.py.tmpl Wed Oct 19 17:00:05 2022 +0200 +++ b/src/eric7/CodeTemplates/impl_pyside2.py.tmpl Wed Oct 19 17:47:50 2022 +0200 @@ -14,10 +14,11 @@ """ Class documentation goes here. """ + def __init__(self, parent=None): """ Constructor - + @param parent reference to the parent widget (defaults to None) @type QWidget (optional) """
--- a/src/eric7/CodeTemplates/impl_pyside6.py.tmpl Wed Oct 19 17:00:05 2022 +0200 +++ b/src/eric7/CodeTemplates/impl_pyside6.py.tmpl Wed Oct 19 17:47:50 2022 +0200 @@ -14,10 +14,11 @@ """ Class documentation goes here. """ + def __init__(self, parent=None): """ Constructor - + @param parent reference to the parent widget (defaults to None) @type QWidget (optional) """
--- a/src/eric7/Project/CreateDialogCodeDialog.py Wed Oct 19 17:00:05 2022 +0200 +++ b/src/eric7/Project/CreateDialogCodeDialog.py Wed Oct 19 17:47:50 2022 +0200 @@ -525,7 +525,7 @@ child.flags() & Qt.ItemFlag.ItemIsUserCheckable == Qt.ItemFlag.ItemIsUserCheckable ): - slotsCode.append("{0}\n".format(indentStr)) + slotsCode.append("\n") slotsCode.append( "{0}{1}\n".format( indentStr, @@ -543,7 +543,7 @@ "{0}Slot documentation goes here.\n".format(indentStr2) ) if child.data(returnTypeRole) or child.data(parameterTypesListRole): - slotsCode.append("{0}\n".format(indentStr2)) + slotsCode.append("\n") if child.data(parameterTypesListRole): for name, type_ in zip( child.data(parameterNamesListRole),