From: Guido van Rossum Date: Mon, 19 Oct 1998 02:22:41 +0000 (+0000) Subject: Raise priority of 'sel' tag so its foreground (on Windows) will take X-Git-Tag: v1.5.2b1~317 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6c5baeb6df01f31c0be9b024f5b169969db89680;p=thirdparty%2FPython%2Fcpython.git Raise priority of 'sel' tag so its foreground (on Windows) will take priority over text colorization (which on Windows is almost the same color as the selection background). Define a tag and color for breakpoints ("BREAK"). --- diff --git a/Tools/idle/ColorDelegator.py b/Tools/idle/ColorDelegator.py index 0cbf2fb27cff..5bf921d99b06 100644 --- a/Tools/idle/ColorDelegator.py +++ b/Tools/idle/ColorDelegator.py @@ -44,6 +44,7 @@ class ColorDelegator(Delegator): for tag, cnf in self.tagdefs.items(): if cnf: apply(self.tag_configure, (tag,), cnf) + self.tag_raise('sel') tagdefs = { "COMMENT": {"foreground": "#dd0000"}, @@ -53,6 +54,8 @@ class ColorDelegator(Delegator): "SYNC": {}, #{"background": "#ffff00"}, "TODO": {}, #{"background": "#cccccc"}, + + "BREAK": {"background": "#FF7777"}, } def insert(self, index, chars, tags=None):