From: Terry Jan Reedy Date: Mon, 28 Sep 2015 08:52:49 +0000 (-0400) Subject: Issue #24972: New option is only valid in tk 8.5+. X-Git-Tag: v3.5.1rc1~254^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d351706950a04a785eb37fe907610d3235719bb4;p=python Issue #24972: New option is only valid in tk 8.5+. --- diff --git a/Lib/idlelib/EditorWindow.py b/Lib/idlelib/EditorWindow.py index d742dd64f1..a634d1f323 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 + "_"