Plugins/ViewManagerPlugins/Listspace/Listspace.py

branch
Py2 comp.
changeset 3080
6c0a430b19df
parent 3060
5883ce99ee12
parent 3062
9de9373da5bb
child 3142
55030c09e142
equal deleted inserted replaced
3079:0233bbe9a9c4 3080:6c0a430b19df
527 self.viewlist.item(index).setIcon( 527 self.viewlist.item(index).setIcon(
528 UI.PixmapCache.getIcon("fileModified.png")) 528 UI.PixmapCache.getIcon("fileModified.png"))
529 elif editor.hasSyntaxErrors(): 529 elif editor.hasSyntaxErrors():
530 self.viewlist.item(index).setIcon( 530 self.viewlist.item(index).setIcon(
531 UI.PixmapCache.getIcon("syntaxError.png")) 531 UI.PixmapCache.getIcon("syntaxError.png"))
532 elif editor.hasFlakesWarnings(): 532 elif editor.hasWarnings():
533 self.viewlist.item(index).setIcon( 533 self.viewlist.item(index).setIcon(
534 UI.PixmapCache.getIcon("warning.png")) 534 UI.PixmapCache.getIcon("warning.png"))
535 else: 535 else:
536 self.viewlist.item(index).setIcon( 536 self.viewlist.item(index).setIcon(
537 UI.PixmapCache.getIcon("empty.png")) 537 UI.PixmapCache.getIcon("empty.png"))
547 currentRow = self.viewlist.currentRow() 547 currentRow = self.viewlist.currentRow()
548 index = self.editors.index(editor) 548 index = self.editors.index(editor)
549 if editor.hasSyntaxErrors(): 549 if editor.hasSyntaxErrors():
550 self.viewlist.item(index).setIcon( 550 self.viewlist.item(index).setIcon(
551 UI.PixmapCache.getIcon("syntaxError.png")) 551 UI.PixmapCache.getIcon("syntaxError.png"))
552 elif editor.hasFlakesWarnings(): 552 elif editor.hasWarnings():
553 self.viewlist.item(index).setIcon( 553 self.viewlist.item(index).setIcon(
554 UI.PixmapCache.getIcon("warning.png")) 554 UI.PixmapCache.getIcon("warning.png"))
555 elif editor.isModified(): 555 elif editor.isModified():
556 self.viewlist.item(index).setIcon( 556 self.viewlist.item(index).setIcon(
557 UI.PixmapCache.getIcon("fileModified.png")) 557 UI.PixmapCache.getIcon("fileModified.png"))

eric ide

mercurial