Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
4e9a7058
Commit
4e9a7058
authored
Apr 07, 2013
by
Roger Serwy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#17613: Prevent traceback when removing syntax colorizer in IDLE.
parent
231a8fd2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
Lib/idlelib/ColorDelegator.py
Lib/idlelib/ColorDelegator.py
+4
-0
Misc/NEWS
Misc/NEWS
+2
-0
No files found.
Lib/idlelib/ColorDelegator.py
View file @
4e9a7058
...
@@ -50,6 +50,10 @@ class ColorDelegator(Delegator):
...
@@ -50,6 +50,10 @@ class ColorDelegator(Delegator):
self
.
config_colors
()
self
.
config_colors
()
self
.
bind
(
"<<toggle-auto-coloring>>"
,
self
.
toggle_colorize_event
)
self
.
bind
(
"<<toggle-auto-coloring>>"
,
self
.
toggle_colorize_event
)
self
.
notify_range
(
"1.0"
,
"end"
)
self
.
notify_range
(
"1.0"
,
"end"
)
else
:
# No delegate - stop any colorizing
self
.
stop_colorizing
=
True
self
.
allow_colorizing
=
False
def
config_colors
(
self
):
def
config_colors
(
self
):
for
tag
,
cnf
in
self
.
tagdefs
.
items
():
for
tag
,
cnf
in
self
.
tagdefs
.
items
():
...
...
Misc/NEWS
View file @
4e9a7058
...
@@ -23,6 +23,8 @@ Library
...
@@ -23,6 +23,8 @@ Library
IDLE
IDLE
----
----
-
Issue
#
17613
:
Prevent
traceback
when
removing
syntax
colorizer
in
IDLE
.
-
Issue
#
1207589
:
Backwards
-
compatibility
patch
for
right
-
click
menu
in
IDLE
.
-
Issue
#
1207589
:
Backwards
-
compatibility
patch
for
right
-
click
menu
in
IDLE
.
-
Issue
#
16887
:
IDLE
now
accepts
Cancel
in
tabify
/
untabify
dialog
box
.
-
Issue
#
16887
:
IDLE
now
accepts
Cancel
in
tabify
/
untabify
dialog
box
.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment