184 """ could not be read.</p><p>Reason: {1}</p>""") |
184 """ could not be read.</p><p>Reason: {1}</p>""") |
185 .format(filename, str(err))) |
185 .format(filename, str(err))) |
186 return |
186 return |
187 |
187 |
188 self.licenseComboBox.addItem("") |
188 self.licenseComboBox.addItem("") |
189 self.licenseComboBox.addItems( |
189 self.licenseComboBox.addItems(sorted( |
190 line.split("::")[-1].strip() |
190 line.split("::")[-1].strip() |
191 for line in lines |
191 for line in lines |
192 if line.startswith("License ") # play it safe |
192 if line.startswith("License ") # play it safe |
193 ) |
193 )) |
194 |
194 |
195 @pyqtSlot(str) |
195 @pyqtSlot(str) |
196 def on_languageComboBox_currentTextChanged(self, language): |
196 def on_languageComboBox_currentTextChanged(self, language): |
197 """ |
197 """ |
198 Private slot handling the selection of a programming language. |
198 Private slot handling the selection of a programming language. |