50 self.docstringStyleComboBox.addItem(self.tr("None"), "") |
53 self.docstringStyleComboBox.addItem(self.tr("None"), "") |
51 for docstringType, docstringStyle in sorted( |
54 for docstringType, docstringStyle in sorted( |
52 getSupportedDocstringTypes() |
55 getSupportedDocstringTypes() |
53 ): |
56 ): |
54 self.docstringStyleComboBox.addItem(docstringStyle, docstringType) |
57 self.docstringStyleComboBox.addItem(docstringStyle, docstringType) |
|
58 |
|
59 self.testingFrameworkComboBox.addItem(self.tr("None"), "") |
|
60 for framework in sorted(FrameworkNames): |
|
61 self.testingFrameworkComboBox.addItem(framework, framework) |
55 |
62 |
56 self.project = project |
63 self.project = project |
57 self.newProject = new |
64 self.newProject = new |
58 self.transPropertiesDlg = None |
65 self.transPropertiesDlg = None |
59 self.spellPropertiesDlg = None |
66 self.spellPropertiesDlg = None |
131 self.makeCheckBox.setChecked( |
138 self.makeCheckBox.setChecked( |
132 self.project.pdata["MAKEPARAMS"]["MakeEnabled"]) |
139 self.project.pdata["MAKEPARAMS"]["MakeEnabled"]) |
133 cindex = self.docstringStyleComboBox.findData( |
140 cindex = self.docstringStyleComboBox.findData( |
134 self.project.pdata["DOCSTRING"]) |
141 self.project.pdata["DOCSTRING"]) |
135 self.docstringStyleComboBox.setCurrentIndex(cindex) |
142 self.docstringStyleComboBox.setCurrentIndex(cindex) |
|
143 with contextlib.suppress(KeyError): |
|
144 cindex = self.testingFrameworkComboBox.findData( |
|
145 self.project.pdata["TESTING_FRAMEWORK"]) |
|
146 self.testingFrameworkComboBox.setCurrentIndex(cindex) |
136 else: |
147 else: |
137 self.languageComboBox.setCurrentIndex( |
148 self.languageComboBox.setCurrentIndex( |
138 self.languageComboBox.findText("Python3")) |
149 self.languageComboBox.findText("Python3")) |
139 self.projectTypeComboBox.setCurrentIndex( |
150 self.projectTypeComboBox.setCurrentIndex( |
140 self.projectTypeComboBox.findData("PyQt6")) |
151 self.projectTypeComboBox.findData("PyQt6")) |