From d351706950a04a785eb37fe907610d3235719bb4 Mon Sep 17 00:00:00 2001 From: Terry Jan Reedy Date: Mon, 28 Sep 2015 04:52:49 -0400 Subject: [PATCH] Issue #24972: New option is only valid in tk 8.5+. --- Lib/idlelib/EditorWindow.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Lib/idlelib/EditorWindow.py b/Lib/idlelib/EditorWindow.py index d742dd64f16..a634d1f323a 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 + "_"