--- a/eric6/Project/PropertiesDialog.py Fri Jan 22 14:14:15 2021 +0100 +++ b/eric6/Project/PropertiesDialog.py Fri Jan 22 16:48:43 2021 +0100 @@ -17,6 +17,8 @@ from .Ui_PropertiesDialog import Ui_PropertiesDialog +from QScintilla.DocstringGenerator import getSupportedDocstringTypes + import Utilities import Preferences import UI.PixmapCache @@ -45,6 +47,12 @@ self.makeButton.setIcon(UI.PixmapCache.getIcon("makefile")) + self.docstringStyleComboBox.addItem(self.tr("None"), "") + for docstringType, docstringStyle in sorted( + getSupportedDocstringTypes() + ): + self.docstringStyleComboBox.addItem(docstringStyle, docstringType) + self.project = project self.newProject = new self.transPropertiesDlg = None @@ -122,6 +130,9 @@ self.vcsCheckBox.hide() self.makeCheckBox.setChecked( self.project.pdata["MAKEPARAMS"]["MakeEnabled"]) + cindex = self.docstringStyleComboBox.findData( + self.project.pdata["DOCSTRING"]) + self.docstringStyleComboBox.setCurrentIndex(cindex) else: self.languageComboBox.setCurrentIndex( self.languageComboBox.findText("Python3")) @@ -318,3 +329,7 @@ ) if self.makePropertiesDlg is not None: self.makePropertiesDlg.storeData() + + self.project.pdata["DOCSTRING"] = ( + self.docstringStyleComboBox.currentData() + )