src/eric7/VirtualEnv/VirtualenvManagerWidgets.py

branch
eric7
changeset 11286
f0a76bd2a9d3
parent 11281
a2529214787a
equal deleted inserted replaced
11285:ef8675deb106 11286:f0a76bd2a9d3
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

eric ide

mercurial