281 Private method to set the right icon for the sources browser tab. |
281 Private method to set the right icon for the sources browser tab. |
282 """ |
282 """ |
283 if not self.project.isOpen(): |
283 if not self.project.isOpen(): |
284 icon = UI.PixmapCache.getIcon("projectSources") |
284 icon = UI.PixmapCache.getIcon("projectSources") |
285 else: |
285 else: |
286 if self.project.getProjectLanguage() in [ |
286 if self.project.getProjectLanguage() == "Python3": |
287 "Python", "Python2", "Python3" |
|
288 ]: |
|
289 if self.project.isMixedLanguageProject(): |
287 if self.project.isMixedLanguageProject(): |
290 icon = UI.PixmapCache.getIcon("projectSourcesPyMixed") |
288 icon = UI.PixmapCache.getIcon("projectSourcesPyMixed") |
291 else: |
289 else: |
292 icon = UI.PixmapCache.getIcon("projectSourcesPy") |
290 icon = UI.PixmapCache.getIcon("projectSourcesPy") |
293 elif self.project.getProjectLanguage() == "MicroPython": |
291 elif self.project.getProjectLanguage() == "MicroPython": |