diff options
author | Guido van Rossum <guido@python.org> | 1998-10-19 02:22:41 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-10-19 02:22:41 (GMT) |
commit | 6c5baeb6df01f31c0be9b024f5b169969db89680 (patch) | |
tree | 25f0256c5799205a349086046b5d0ab181d1ff44 /Tools/idle | |
parent | 0737430bf8f7754f72e5fdd3faa2a51c871b2a4b (diff) | |
download | cpython-6c5baeb6df01f31c0be9b024f5b169969db89680.zip cpython-6c5baeb6df01f31c0be9b024f5b169969db89680.tar.gz cpython-6c5baeb6df01f31c0be9b024f5b169969db89680.tar.bz2 |
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").
Diffstat (limited to 'Tools/idle')
-rw-r--r-- | Tools/idle/ColorDelegator.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Tools/idle/ColorDelegator.py b/Tools/idle/ColorDelegator.py index 0cbf2fb..5bf921d 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): |