eric7/Project/PropertiesDialog.py

branch
eric7
changeset 9141
7085ece52151
parent 9129
44f8c8c3d37e
child 9175
21e2be5f0b41
equal deleted inserted replaced
9140:6bbb4e047902 9141:7085ece52151
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.

eric ide

mercurial