372 if environment.is_remote: |
372 if environment.is_remote: |
373 font = itm.font(0) |
373 font = itm.font(0) |
374 font.setUnderline(True) |
374 font.setUnderline(True) |
375 for column in range(itm.columnCount()): |
375 for column in range(itm.columnCount()): |
376 itm.setFont(column, font) |
376 itm.setFont(column, font) |
377 else: |
377 |
378 # local environments |
378 # show global environments with bold font |
379 |
379 elif environment.is_global: |
380 # show global environments with bold font |
380 font = itm.font(0) |
381 if environment.is_global: |
381 font.setBold(True) |
382 font = itm.font(0) |
382 for column in range(itm.columnCount()): |
383 font.setBold(True) |
383 itm.setFont(column, font) |
384 for column in range(itm.columnCount()): |
384 |
385 itm.setFont(column, font) |
385 # show Anaconda environments with italic font |
386 |
386 elif environment.is_conda: |
387 # show Anaconda environments with italic font |
387 font = itm.font(0) |
388 if environment.is_conda: |
388 font.setItalic(True) |
389 font = itm.font(0) |
389 for column in range(itm.columnCount()): |
390 font.setItalic(True) |
390 itm.setFont(column, font) |
391 for column in range(itm.columnCount()): |
391 |
392 itm.setFont(column, font) |
392 # show eric-ide server environments with underlined italic font |
|
393 elif environment.is_eric_server: |
|
394 font = itm.font(0) |
|
395 font.setItalic(True) |
|
396 font.setUnderline(True) |
|
397 for column in range(itm.columnCount()): |
|
398 itm.setFont(column, font) |
393 |
399 |
394 self.__resizeSections() |
400 self.__resizeSections() |
395 |
401 |
396 def __resizeSections(self): |
402 def __resizeSections(self): |
397 """ |
403 """ |