[Python-checkins] cpython (2.7): Issue #24820: Users can now set breakpoint colors in Settings ->

terry.reedy python-checkins at python.org
Fri Oct 2 22:13:21 EDT 2015


https://hg.python.org/cpython/rev/e67da755d614
changeset: 98500:e67da755d614
branch: 2.7
parent: 98497:30c143a705dd
user: Terry Jan Reedy <tjreedy at udel.edu>
date: Fri Oct 02 22:12:09 2015 -0400
summary:
 Issue #24820: Users can now set breakpoint colors in Settings ->
Custom Highlighting. Original patch by Mark Roseman.
files:
 Lib/idlelib/configDialog.py | 30 +++++++++++++-----------
 1 files changed, 16 insertions(+), 14 deletions(-)
diff --git a/Lib/idlelib/configDialog.py b/Lib/idlelib/configDialog.py
--- a/Lib/idlelib/configDialog.py
+++ b/Lib/idlelib/configDialog.py
@@ -41,19 +41,20 @@
 #The first value of the tuple is the sample area tag name.
 #The second value is the display name list sort index.
 self.themeElements={
- 'Normal Text':('normal', '00'),
- 'Python Keywords':('keyword', '01'),
- 'Python Definitions':('definition', '02'),
- 'Python Builtins':('builtin', '03'),
- 'Python Comments':('comment', '04'),
- 'Python Strings':('string', '05'),
- 'Selected Text':('hilite', '06'),
- 'Found Text':('hit', '07'),
- 'Cursor':('cursor', '08'),
- 'Error Text':('error', '09'),
- 'Shell Normal Text':('console', '10'),
- 'Shell Stdout Text':('stdout', '11'),
- 'Shell Stderr Text':('stderr', '12'),
+ 'Normal Text': ('normal', '00'),
+ 'Python Keywords': ('keyword', '01'),
+ 'Python Definitions': ('definition', '02'),
+ 'Python Builtins': ('builtin', '03'),
+ 'Python Comments': ('comment', '04'),
+ 'Python Strings': ('string', '05'),
+ 'Selected Text': ('hilite', '06'),
+ 'Found Text': ('hit', '07'),
+ 'Cursor': ('cursor', '08'),
+ 'Editor Breakpoint': ('break', '09'),
+ 'Shell Normal Text': ('console', '10'),
+ 'Shell Error Text': ('error', '11'),
+ 'Shell Stdout Text': ('stdout', '12'),
+ 'Shell Stderr Text': ('stderr', '13'),
 }
 self.ResetChangedItems() #load initial values in changed items dict
 self.CreateWidgets()
@@ -217,7 +218,8 @@
 ("'selected'", 'hilite'), ('\n var2 = ', 'normal'),
 ("'found'", 'hit'), ('\n var3 = ', 'normal'),
 ('list', 'builtin'), ('(', 'normal'),
- ('None', 'builtin'), (')\n\n', 'normal'),
+ ('None', 'builtin'), (')\n', 'normal'),
+ (' breakpoint("line")', 'break'), ('\n\n', 'normal'),
 (' error ', 'error'), (' ', 'normal'),
 ('cursor |', 'cursor'), ('\n ', 'normal'),
 ('shell', 'console'), (' ', 'normal'),
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /