]> granicus.if.org Git - python/commitdiff
Raise priority of 'sel' tag so its foreground (on Windows) will take
authorGuido van Rossum <guido@python.org>
Mon, 19 Oct 1998 02:22:41 +0000 (02:22 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 19 Oct 1998 02:22:41 +0000 (02:22 +0000)
priority over text colorization (which on Windows is almost the
same color as the selection background).

Define a tag and color for breakpoints ("BREAK").

Tools/idle/ColorDelegator.py

index 0cbf2fb27cff5d95f742d9db456946dd1ccb6310..5bf921d99b062aa41e398bed5cdbb4dcbd808017 100644 (file)
@@ -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):