375 self.venvList, |
375 self.venvList, |
376 [environment.name, environmentType, environment.path], |
376 [environment.name, environmentType, environment.path], |
377 ) |
377 ) |
378 itm.setData(0, VirtualenvManagerWidget.MetadataRole, environment) |
378 itm.setData(0, VirtualenvManagerWidget.MetadataRole, environment) |
379 |
379 |
|
380 # show unavailable environments with strikeout font |
|
381 if not environment.available: |
|
382 font = itm.font(0) |
|
383 font.setStrikeOut(True) |
|
384 for column in range(itm.columnCount()): |
|
385 itm.setFont(column, font) |
|
386 |
380 self.__resizeSections() |
387 self.__resizeSections() |
381 |
388 |
382 def __resizeSections(self): |
389 def __resizeSections(self): |
383 """ |
390 """ |
384 Private method to resize the sections of the environment list to their |
391 Private method to resize the sections of the environment list to their |