Plugins/ViewManagerPlugins/Tabview/Tabview.py

changeset 88
3701923bccf2
parent 55
b5c84934de9c
child 248
f4561c24989a
equal deleted inserted replaced
87:4cc5c8d1184d 88:3701923bccf2
869 index = tw.indexOf(editor) 869 index = tw.indexOf(editor)
870 if m: 870 if m:
871 tw.setTabIcon(index, UI.PixmapCache.getIcon("fileModified.png")) 871 tw.setTabIcon(index, UI.PixmapCache.getIcon("fileModified.png"))
872 elif editor.hasSyntaxErrors(): 872 elif editor.hasSyntaxErrors():
873 tw.setTabIcon(index, UI.PixmapCache.getIcon("syntaxError.png")) 873 tw.setTabIcon(index, UI.PixmapCache.getIcon("syntaxError.png"))
874 elif editor.hasFlakesWarnings():
875 tw.setTabIcon(index, UI.PixmapCache.getIcon("warning.png"))
874 else: 876 else:
875 tw.setTabIcon(index, UI.PixmapCache.getIcon("empty.png")) 877 tw.setTabIcon(index, UI.PixmapCache.getIcon("empty.png"))
876 self._checkActions(editor) 878 self._checkActions(editor)
877 879
878 def _syntaxErrorToggled(self, editor): 880 def _syntaxErrorToggled(self, editor):
885 if tw.hasEditor(editor): 887 if tw.hasEditor(editor):
886 break 888 break
887 index = tw.indexOf(editor) 889 index = tw.indexOf(editor)
888 if editor.hasSyntaxErrors(): 890 if editor.hasSyntaxErrors():
889 tw.setTabIcon(index, UI.PixmapCache.getIcon("syntaxError.png")) 891 tw.setTabIcon(index, UI.PixmapCache.getIcon("syntaxError.png"))
892 elif editor.hasFlakesWarnings():
893 tw.setTabIcon(index, UI.PixmapCache.getIcon("warning.png"))
890 else: 894 else:
891 tw.setTabIcon(index, UI.PixmapCache.getIcon("empty.png")) 895 tw.setTabIcon(index, UI.PixmapCache.getIcon("empty.png"))
892 896
893 ViewManager._syntaxErrorToggled(self, editor) 897 ViewManager._syntaxErrorToggled(self, editor)
894 898

eric ide

mercurial