mirror of
https://github.com/python/cpython.git
synced 2026-04-04 19:13:16 +00:00
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").
This commit is contained in:
parent
0737430bf8
commit
6c5baeb6df
1 changed files with 3 additions and 0 deletions
|
|
@ -44,6 +44,7 @@ def config_colors(self):
|
|||
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 @@ def config_colors(self):
|
|||
|
||||
"SYNC": {}, #{"background": "#ffff00"},
|
||||
"TODO": {}, #{"background": "#cccccc"},
|
||||
|
||||
"BREAK": {"background": "#FF7777"},
|
||||
}
|
||||
|
||||
def insert(self, index, chars, tags=None):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue