diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2015-09-28 08:52:49 (GMT) |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2015-09-28 08:52:49 (GMT) |
commit | d351706950a04a785eb37fe907610d3235719bb4 (patch) | |
tree | 272eae2a4668494594dc3f78910c9d231c13da79 /Lib/idlelib | |
parent | 507a5c4b4e8950dc4c688f151fc819160ee75873 (diff) | |
download | cpython-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.py | 4 |
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 + "_" |