summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2015-09-28 08:52:49 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2015-09-28 08:52:49 (GMT)
commitd351706950a04a785eb37fe907610d3235719bb4 (patch)
tree272eae2a4668494594dc3f78910c9d231c13da79 /Lib/idlelib
parent507a5c4b4e8950dc4c688f151fc819160ee75873 (diff)
downloadcpython-d351706950a04a785eb37fe907610d3235719bb4.zip
cpython-d351706950a04a785eb37fe907610d3235719bb4.tar.gz
cpython-d351706950a04a785eb37fe907610d3235719bb4.tar.bz2
Issue #24972: New option is only valid in tk 8.5+.
Diffstat (limited to 'Lib/idlelib')
-rw-r--r--Lib/idlelib/EditorWindow.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/idlelib/EditorWindow.py b/Lib/idlelib/EditorWindow.py
index d742dd6..a634d1f 100644
--- a/Lib/idlelib/EditorWindow.py
+++ b/Lib/idlelib/EditorWindow.py
@@ -755,8 +755,10 @@ class EditorWindow(object):
insertbackground=cursor_color,
selectforeground=select_colors['foreground'],
selectbackground=select_colors['background'],
- inactiveselectbackground=select_colors['background'],
)
+ if TkVersion >= 8.5:
+ self.text.config(
+ inactiveselectbackground=select_colors['background'])
IDENTCHARS = string.ascii_letters + string.digits + "_"